I've been looking at the new options available in HTML5 forms, such as declaring input types as "email", "url", and "number", as described here.
How can I use these in conjunction with the rails form builders? I have tried
<% form_for @user do |f| %>
<%= f.email :email, {:placeholder => '[email protected]'} %>
<% end %>
But that does not work. I've also tried
<% form_for @user do |f| %>
<%= f.text_field :email, {:placeholder => '[email protected]', :type => :email} %>
<% end %>
But the type is still "text" and not overridden. Is it possible, or is this something that will need to be addressed in Rails itself?