I usually just put in my application helper something along the lines of
def dom_id(*)
super.gsub("_", "-")
end
Ditto for classes. It works pretty well :)
Cheers,
-foca
On Sat, Jun 7, 2014 at 3:33 PM, Xavier Noria <[email protected]> wrote:
> On Sat, Jun 7, 2014 at 10:14 AM, Trung Lê <[email protected]> wrote:
> At the moment view helper like form or input generates HTML with naming
>> that use underscore. Underscored naming is not the common convention used
>> in frontend dev. I'd like to propose a feature to switch to dashed naming.
>>
> Sounds good to me, would you like to have a stab at it?
> --
> 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 http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
--
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 http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.