Linking controllers

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


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

Good luck

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs