----- NOOB ALERT ----- When an action is called within a single controller -- see below -- how do i hop to another controller, say to add a link that I want the user to be able to click to edit or view another table? cuz when i try link_to ''Edit'', action => ???? i can''t figure out how to make the jump. <%= link_to ''Edit'', :action => ''edit'', :id => @scoreboard %> | <%= link_to ''Back'', :action => ''list'' %> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
coolness... thanks, Phillip. On Apr 4, 11:39 am, Philip Hallstrom <r...-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> > When an action is called within a single controller -- see below -- > > how do i hop to another controller, say to add a link that I want the > > user to be able to click to edit or view another table? cuz when i > > try link_to ''Edit'', action => ???? i can''t figure out how to make the > > jump. > > > <%= link_to ''Edit'', :action => ''edit'', :id => @scoreboard %> | > > <%= link_to ''Edit'', :controller => ''my_other_controller'', :action => > ''edit'', :id => @scoreboard %> | > > > <%= link_to ''Back'', :action => ''list'' %>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> When an action is called within a single controller -- see below -- > how do i hop to another controller, say to add a link that I want the > user to be able to click to edit or view another table? cuz when i > try link_to ''Edit'', action => ???? i can''t figure out how to make the > jump. > > <%= link_to ''Edit'', :action => ''edit'', :id => @scoreboard %> |<%= link_to ''Edit'', :controller => ''my_other_controller'', :action => ''edit'', :id => @scoreboard %> |> <%= link_to ''Back'', :action => ''list'' %>--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---