>> <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;">


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to