# Can say the login window code how to check the loigin names

**URL:** <https://www.ruby-forum.com/t/can-say-the-login-window-code-how-to-check-the-loigin-names/87845>\
**Category:** Ruby\
**Created:** [March 6, 2007, 11:35am UTC](https://www.ruby-forum.com/t/can-say-the-login-window-code-how-to-check-the-loigin-names/87845 "2007-03-06T11:35:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2007, 11:35am UTC](https://www.ruby-forum.com/t/can-say-the-login-window-code-how-to-check-the-loigin-names/87845/1 "2007-03-06T11:35:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [March 6, 2007, 2:59pm UTC](https://www.ruby-forum.com/t/can-say-the-login-window-code-how-to-check-the-loigin-names/87845/2 "2007-03-06T14:59:03Z")

</div>

On 3/6/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
