I am developing an assignment for best ror practice.
For the same,
I am making a login & password form.
It is something like that below
Login : ______________
Password : ____________
Submit Register Forgot Password.
I have made this in view as in index.erb.html.
I want to check it in Controller,
HOw do I suppose to take the user value in Controller.
THe below is the code I wrote in index.erb.html..........
<%= form_tag :action => "login" %>
Login: <%= text_field "users", "name", :size => 20 %><br />
Password: <%= password_field "users", "hashed_password",:size =>
<%= submit_tag "Submit" %>
<%= link_to 'Register', :action => 'signup' %>
<%= link_to 'Forgot my password', :action => 'forgot_password' %>
My table with name users in db has following attributes.