I have this Rails 1.2.6 form:
<%= form_tag(:action => "login_in_user") %>
<p>
<label for="header">Username</label>
<%= text_field("user", "name") %>
</p>
<p>
<label for="header">Password</label>
<%= password_field("user", "password") %>
</p>
<div class="spacer"></div>
<%= write_flash_notice(:label => true)%>
<%= error_messages_for 'user' %>
<p>
<label for="submit"> </label>
<%= submit_tag("login") %>
</p>
<%= end_form_tag %>
I have really tried to rewrite this wihhout luck using form_for(:login_in_user)
How should I rewrite it?
UPDATE – Rails§! Had of course forgot the <%= yield %> in layout
Is there a @user instance present? If so: