Calling Controller without redirecting


#1

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


#2

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