Handling two forms on same page!
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.
In your form declarations, specify the action and controller to use.
If you show the code for your view I can be more specific.