That's not true. Ids are perfectly valid. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/
On 05/02/2009, at 3:01 PM, Phlip <[email protected]> wrote: > >> I am using the form_tag_helper to create a form, but I want to >> give it >> an ID so I can style the elements within the form. I currently >> have >> the following: > > Style things with classes unless you must use IDs. I can't think of > a reason. > > Rails is so flexible that, before you know it, you will be cloning > this form and > en-partialling it into your page more than once, and IDs must be > unique to their > document... > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

