I\'d like to be able to dispatch from one controller action to another conditionally, based on a combination of query parameters and data in the database.
What I hav
Create an instance of the controller class:
@my_other_controller = MyOtherController.new
Then call methods on it:
@my_other_controller.some_method(params[:id])
I prefer the module idea, but this should do the trick.
You can also pass parameters as a whole from another controller:
@my_other_controller.params = params