This is a bit of a weird question, but what if i wanted to pick a controller from a controller without redirecting? Let me explain: user goes to localhost/foobar/choose foobar/choose picks one of the three phobar/index bar/index foo/index but instead of redirecting, it simply executres one of the controllers and forwards the result. Strange? yes. Useful? very. Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060131/8823884c/attachment.html
Nathaniel S. H. Brown
2006-Jan-31 08:43 UTC
[Rails] Calling Controller without redirecting
Might want to check this out: http://railsmanual.org/module/ActionController%3A%3AComponents#render_compon ent Even though it''s not necessarily a "Component" you have created, it will provide the same functionality. -Nb ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel S. H. Brown http://nshb.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of > zbyte pepsi-hola > Sent: January 31, 2006 12:34 AM > To: Rails@lists.rubyonrails.org > Subject: [Rails] Calling Controller without redirecting > > This is a bit of a weird question, but what if i wanted to > pick a controller from a controller without redirecting? Let > me explain: > > user goes to localhost/foobar/choose > > foobar/choose picks one of the three > > phobar/index > bar/index > foo/index > > but instead of redirecting, it simply executres one of the > controllers and forwards the result. Strange? yes. Useful? very. Thx > >