Paul Jonathan Thompson
2006-Jun-15 02:17 UTC
[Rails] How to pass a varible from controller A to controller B
Please, can somebody tell me how to pass a variable from controller A to controller B. I am going crazy trying to work it out but I am not getting anywhere. This has got to be a simple thing, only my ignorance is holding me back! Thanks, Paul
Bill Walton
2006-Jun-15 03:40 UTC
[Rails] How to pass a varible from controller A to controller B
Hi Paul, Paul Jonathan Thompson wrote:> Please, can somebody tell me how to pass a variable from controller A > to controller B. I am going crazy trying to work it out but I am not > getting anywhere. This has got to be a simple thing, only my ignorance > is holding me back!Easiest thing to to is put it in: 1) a session variable (eg., variable = session[:something]), or 2) an instance variable (e.g. @variable = whatever_you_want_to_pass) hth, Bill
Paul Jonathan Thompson
2006-Jun-15 05:32 UTC
[Rails] How to pass a varible from controller A to controller B
Thank you! Problem solved. Regards, Paul On 15/06/06, Bill Walton <bill.walton@charter.net> wrote:> Hi Paul, > > Paul Jonathan Thompson wrote: > > > Please, can somebody tell me how to pass a variable from controller A > > to controller B. I am going crazy trying to work it out but I am not > > getting anywhere. This has got to be a simple thing, only my ignorance > > is holding me back! > > Easiest thing to to is put it in: > 1) a session variable (eg., variable = session[:something]), or > 2) an instance variable (e.g. @variable = whatever_you_want_to_pass) > > hth, > Bill > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >