Displaying 3 results from an estimated 3 matches for "user_usernam".
Did you mean:
user_username
2008 Jul 14
5
How can i use link_to_remote with in form_for
Hi
anybody plz help me how can i use link_to_remote with in form_for.. i
tried but no luck... if i use form_tag i can able to use link_to_remote
and made ajax call.but i need to use form_for ....can anyone help me how
can i do with this.Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2008 Apr 30
4
what is .....undefined method `authenticate'
...--------------------------------------
FORM IS
<div>
<h1>Login Section</h1>
<% form_tag :controller => "user", :action => "login_submit" do %>
<p class="input_fields"><label>Username: </label><input
id="user_username" name="user[username]" size="15" type="text" /></p>
<p class="input_fields"><label>Password: </label><input
id="user_password" name="user[password]" size="15" type="password"...
2007 Jul 31
1
form_for - over riding the controller that generates the form
...d:<br /><%= f.password_field :password, :size => 30 %></p>
<%= submit_tag ''Login'' %>
<% end %>
This is the form that is created:
<form action="/pages/authenticate" method="post">
<p>
LOGIN <input id="user_username" name="user[username]" size="10"
type="text" />
PASSWORD <input id="user_password" name="user[password]" size="10"
type="password" />
<input name="commit" type="submit" value="Logi...