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.

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?