iam new one to ruby
am write the code to
login.rhtml page:
<%= text_field ‘login’ , ‘usname’ %>
<%= password_field ‘login’, ‘passd’ %>
<%=button_to “chk”, :action => ‘authorized’%>
if i want to click the chk button check the login details in
logindatas table the fields are
1.id
2.username
3.password
then check the username and password if its true means show the
admin.rhtml page this in
view/admin/admin.rhtml
if fails means show the login.rhtml from view/login/
where do i want to check the functionality in model/
login.rb???
can u give full code for login page.