Well this is old, but still relevant :) I've seen the replies, but i've we
do it the way we wanted and just because all the other attributes are doing
it that way, i think you're doing it wrong. Rails is meant to please the
developer, making painful constructs just to make a link selected or
current is just crazy.
I'd would love it if rails would have a class: {selected: selected?, btn:
true}
Rails, is elegant, makes sense and just works. Some hashes get special
treatment, thats fine.
:class should be one of them.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.