Forum: Ruby on Rails Calling Controller without redirecting

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B91e98954bc09fc208a098c8f10e4fd5?d=identicon&s=25 zbyte pepsi-hola (Guest)
on 2006-01-31 09:36
(Received via mailing list)
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
00e3a96684ab390a350b0271e98741d3?d=identicon&s=25 Nshbrown Nshbrown (nshb)
on 2006-01-31 09:45
(Received via mailing list)
Might want to check this out:

http://railsmanual.org/module/ActionController%3A%...
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This topic is locked and can not be replied to.