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.
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..........
<h3>Login</h3>
<%= form_tag :action => "login" %>
Login: <%= text_field "users", "name", :size => 20 %><br />
Password: <%= password_field "users", "hashed_password",:size =>
20%><br />
<%= 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.
users
--------------------------------------------
user | hased_password | email | created_at |
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---