hi every one . i am a newbie in rails . please help me with this question i have a controller named home_page and one action inside it named index . in view part of this controller for index action i have a login box that the user must enter his user name and password to log in into the site .when users enters their user name and password and press the login button , the entered value for user name and password should be passed to an action named login in other controller named login_manager , my question here is that how i can transfer the enterd value of the user name and password from index view of home_page controller to the login action method of the login_manager controller ? Please clarify it with rails code . thanks a lot and apologize if my question is very primitive.~~> Moya -- Posted via http://www.ruby-forum.com/.
On 17 Jun 2009, at 16:11, Mohammad Codecorona wrote:> > hi every one . i am a newbie in rails . please help me with this > question > > i have a controller named home_page and one action inside it named > index > . in view part of this controller for index action i have a login box > that the user must enter his user name and password to log in into the > site .when users enters > their user name and password and press the login button , the entered > value for user name and password should be passed to an action named > login in other controller named login_manager , my question here is > that > how i can transfer the enterd value of the user name and password from > index view of home_page controller to the login action method of the > login_manager controller ?The browser submits the form contents for you, you can then pick it out of the params hash Fred> Please clarify it with rails code . > thanks a lot and apologize if my question is very primitive.~~> Moya > -- > Posted via http://www.ruby-forum.com/. > > >
Mohammad Codecorona
2009-Jun-17 17:27 UTC
Re: Transfering information among view and action
thanks fred for your replay . but my question is that how i should write in my code that i want the username and password to be sent to the login action of another controller named login_manager. -- Posted via http://www.ruby-forum.com/.