Lifespent
2008-Mar-21 21:36 UTC
Take information from one controller and have it post on another
I am trying to have <%= link_to event.title, :action => ''show'', :id => event %> show up on my application.html.erb to show the title of events that are coming up. When I view /events I can see the output but when I move to /posts I see: NoMethodError in Posts#index Let me know if this can be done. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jamal Soueidan
2008-Mar-22 08:19 UTC
Re: Take information from one controller and have it post on
Lifespent wrote:> I am trying to have <%= link_to event.title, :action => ''show'', :id => > event %> show up on my application.html.erb to show the title of > events that are coming up. > > When I view /events I can see the output but when I move to /posts I > see: > NoMethodError in Posts#index > > Let me know if this can be done.Sorry, I don''t understand? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---