Wednesday, October 27, 2010

[Rails] Re: Form_for problem after upgrading

> <%= form_for @user_session, :url => user_session_path do |f| %>
> Email <br/>
> <%= text_field_tag :login %><br/>
> Password <br/>
> <%= f.password_field :password %><br/>
> Remember Me
> <%= f.check_box :remember_me %> <br/>
> <%= f.submit "Login" %>
> <% end %>


replace <%= text_field_tag :login %><br/> with
<%= f.text_field :login %>

what is the output in the log?

<%= form_for @user_session, :url => user_session_path do |f| %>
<p><%= f.label( :login , "Email ") %><br />
<%= f.text_field :login %></p>
<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<p><%= f.label :remember_me%><br />
<%= f.text_field :remember_me%></p>
<p><%= f.submit "Login" %></p>
<% end %>

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate