|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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' Code:
def index ... end View: usr/index.html.rb -> this has both register and login forms. Please tell me how can I do this. Thanks |
|
#2
|
|||
|
|||
|
In your form declarations, specify the action and controller to use.
If you show the code for your view I can be more specific. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Handling two forms on same page! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|