Feature request: Alternative separator for view helper

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.

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?

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 :slight_smile:

Cheers,

-foca