This project is archived and is in readonly mode.

#3646 ✓committed
Stephen Celis

HTML5 form field helpers (email_field_tag, etc.)

Reported by Stephen Celis | January 3rd, 2010 @ 07:05 PM | in 3.0.2

As HTML5 becomes more popular, it would be nice to have convenience methods for the new input types.

This patch includes and tests the following:

  • email_field_tag (and email_field)
  • url_field_tag (etc.)
  • telephone_field_tag (aliased to phone_field_tag)
  • number_field_tag
  • range_field_tag
  • search_field_tag

All of the above function on (Mobile) Safari and Opera, and all will gracefully degrade across other browsers.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Referenced by

Pages