can say the login window code how to check the loigin names

D

damod.php

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.
 
A

Austin Ziegler

if i want to click the chk button check the login details in
logindatas table the fields are

This mailing list is for general Ruby questions; your question is
Rails-specific. You probably want to ask Rails specific questions on
the Ruby on Rails Google Group; you can find subscription information
(I hope) at the main Rails website.

-austin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top