Using autofocus and text_field form helpers in Ruby

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-05-19T14:51:30Z Indexed on 2010/05/19 15:00 UTC
Read the original article Hit count: 212

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about ruby

Related posts about html5