How do I include the 'autofocus' attribute on an HTML5 form using the text_field form helper in ruby?
e.g. <%= f.text_field :email %> Where does autofocus go?
Thanks
How do I include the 'autofocus' attribute on an HTML5 form using the text_field form helper in ruby?
e.g. <%= f.text_field :email %> Where does autofocus go?
Thanks
f.text_field :email, :autofocus=>"true"
though, not sure if the value is "true" or "autofocus"