Default button / submit class

Is there a way to set a default class to all or elements? I know rails has a way to do this for other
fields, such as
ActionView::Helpers::InstanceTag::DEFAULT_FIELD_OPTIONS = { “class” =>
“text” }. However I haven’t found anything like this for
buttons/submits.

I know I can add something like input[type=“submit”] { … } to my CSS,
but this won’t work for Internet Explorer.

It just doesn’t seem very DRY that I should have to add a :class =>
“button” to every single button on my site.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs