[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

damod.php

3/6/2007 10:32:00 AM


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.

1 Answer

Austin Ziegler

3/6/2007 1:58:00 PM

0

On 3/6/07, damod.php@gmail.com <damod.php@gmail.com> wrote:
> 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
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca