Permalink
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...
1 parent 91fa76f commit b72239b5aedfa6fc123d2f2ddb0d8f5c24d25fbe @lsimoneau lsimoneau committed with Nov 10, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 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>

0 comments on commit b72239b

Please sign in to comment.