I have two MVCs Meeting and Agenda. A meeting can have many agenda items.
I am trying to set these two pages up so that I can click a 'Create New Agenda Item' on the show.html.rb meeting page. The idea being that this would redirect the user to the new.html.rb agenda page passing the meeting id, and pre-populating the new.html.rb agenda form with the meeting ID.
Currently I have the following which passes the meeting ID in the URL but I have no idea how to pass it to the form.
Meeting: show.html.rb:
<%= link_to "Add Agenda Item", :action => 'new_agenda', :id => @meeting.id %>
Go gentle, I'm very new. But many thanks in advance.
Christian Macedo.