Linking controllers


#1

Newbie question.
How do I link from a view in one controller to a view in another
controller?

Cheers


#2

link_to “some good link”, :controller => ‘other_controller’, :action
=> ‘some_action’

If you have your routes setup w/ map.resources, you’ll have a number
of helpers for that as well:

link_to “some good link”, other_models_path
link_to “some good link”, new_other_model_path
etc.

Good luck


#3

redirect_to :controller => controller, :action => action

Michael