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 rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---