Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed label_tag to form_for label helpers to have the correct 'for'…

… attribute in the label tags of the signup form
  • Loading branch information...
commit b72239b5aedfa6fc123d2f2ddb0d8f5c24d25fbe 1 parent 91fa76f
@lsimoneau lsimoneau authored committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 generators/authenticated/templates/signup.html.erb
View
8 generators/authenticated/templates/signup.html.erb
@@ -3,16 +3,16 @@
<%%= error_messages_for :<%= file_name %> %>
<%% form_for :<%= file_name %>, :url => <%= model_controller_routing_name %>_path do |f| -%>
-<p><%%= label_tag 'login' %><br/>
+<p><%%= f.label :login %><br/>
<%%= f.text_field :login %></p>
-<p><%%= label_tag 'email' %><br/>
+<p><%%= f.label :email %><br/>
<%%= f.text_field :email %></p>
-<p><%%= label_tag 'password' %><br/>
+<p><%%= f.label :password %><br/>
<%%= f.password_field :password %></p>
-<p><%%= label_tag 'password_confirmation', 'Confirm Password' %><br/>
+<p><%%= f.label :password_confirmation, 'Confirm Password' %><br/>
<%%= f.password_field :password_confirmation %></p>
<p><%%= submit_tag 'Sign up' %></p>
Please sign in to comment.
Something went wrong with that request. Please try again.