Use Rails 3 email_field helper instead of text_field for email

This commit is contained in:
Kevin 2010-09-28 06:12:30 +08:00 committed by José Valim
parent c8cb7d270d
commit ab690bf36f
6 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<%= devise_error_messages! %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.submit "Resend confirmation instructions" %></p>
<% end %>

View File

@ -4,7 +4,7 @@
<%= devise_error_messages! %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.submit "Send me reset password instructions" %></p>
<% end %>

View File

@ -4,7 +4,7 @@
<%= devise_error_messages! %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password %></p>

View File

@ -4,7 +4,7 @@
<%= devise_error_messages! %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>

View File

@ -2,7 +2,7 @@
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>

View File

@ -4,7 +4,7 @@
<%= devise_error_messages! %>
<p><%= f.label :email %><br />
<%= f.text_field :email %></p>
<%= f.email_field :email %></p>
<p><%= f.submit "Resend unlock instructions" %></p>
<% end %>