This project is archived and is in readonly mode.
HTML5 form field helpers (email_field_tag, etc.)
-
Tony Pitale
+1
Good first step.
-
Ryan Bigg
+1
I think it's best to have this in now (3.0) than later.
-
Stephen Celis
Additional patch that merely fixes the "text_field type: override" bug.
Discussion here: http://groups.google.com/group/rubyonrails-core/browse_thread/threa...
I still think that we should prefer adding the helpers, as well, to encourage their use.
-
Dan Croak
+1 the accept-alternate-text-field-types.diff patch.
-
Alex Kahn
+1 This is beautiful.
-
Bruce Williams
+1 the accept-alternate-text-field-types.diff patch.
-
Repository
(from [2835ec6134b1e5b706824b568dfaba24672b7409]) Custom 'type' attribute support for text_field. [#3646 HTML5 form field helpers (email_field_tag, etc.) status:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/2835ec6134b1e5b706824b568dfaba... -
José Valim
- State changed from new to resolved
- Assigned user set to José Valim
-
Jeremy Kemper
- Milestone cleared.
- State changed from resolved to open
Let's get the full helpers in. Could you rebase against master?
-
Jeremy Kemper
Interested in seeing autofocus and placeholder support with javascript fallback, too, if anyone wants to tackle in another ticket.
-
Repository
- State changed from open to committed
(from [f8730e5ce6bba4de7639ac09c6c193458038f748]) Added all the new HTML5 form types as individual form tag methods (search, url, number, etc) (Closes #3646 HTML5 form field helpers (email_field_tag, etc.)) [Stephen Celis] http://github.com/rails/rails/commit/f8730e5ce6bba4de7639ac09c6c193...
-
michaelxavier
Hate to necro but is there any possible way to get this backported to 2.X? It is surprisingly painful to retrofit existing forms with HTML5 input types.
-
Justin French
@michaelxavier is it really that painful? text_field(:user, :email_address, :type => :email) has worked pretty well for me.
