
May 23rd, 2008, 01:11 PM
|
|
Contributing User
|
|
Join Date: Oct 2004
Posts: 103

Time spent in forums: 17 h 56 m 7 sec
Reputation Power: 9
|
|
Handling two forms on same page!
Hi.
I have my registration and login forms on same page. If a user is registered she can login or get registered first.
Now I am confused about how to handle it in my controller. How can I handle it in same controller?
The structure is like below:
Controller: usr_controller. This has one method 'index'
View: usr/index.html.rb -> this has both register and login forms.
Please tell me how can I do this.
Thanks
|