# Take information from one controller and have it post on another

**URL:** <https://www.ruby-forum.com/t/take-information-from-one-controller-and-have-it-post-on-another/132616>\
**Category:** Rails\
**Created:** [March 21, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/take-information-from-one-controller-and-have-it-post-on-another/132616 "2008-03-21T22:36:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lifespent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@Lifespent](https://www.ruby-forum.com/u/Lifespent)\
**Post date:** [March 21, 2008, 10:36pm UTC](https://www.ruby-forum.com/t/take-information-from-one-controller-and-have-it-post-on-another/132616/1 "2008-03-21T22:36:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Lifespent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ba8739/32.png) [@Lifespent](https://www.ruby-forum.com/u/Lifespent)\
**Post date:** [March 22, 2008, 9:19am UTC](https://www.ruby-forum.com/t/take-information-from-one-controller-and-have-it-post-on-another/132616/2 "2008-03-22T09:19:31Z")

</div>

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?
