Brilliant on all accounts - thanks guys!! sean
On Apr 8, 11:04 am, Frederick Cheung <[email protected]> wrote: > On 8 Apr 2009, at 15:31, Phlip wrote: > > > > >>> <div id="<%= post.title %>" style="display: none;"> > > >> Just make sure that <%= post.title %> is unique for the page. > > > An id must conform to roughly the same rules as a JavaScript > > identifier. No > > leading numbers, no spaces, no funny business. Of course no browser > > bothers to > > enforce that, but such rules exist to help us Rails programmers > > write rigorous > > code that goes far beyond "browser forgiveness". > > > <div id="post_<%= post.id %>" style="display: none;"> > > Or use the div_for helper > > Fred > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

