RailsCasts Pro episodes are now free!

Learn more or hide this

Nicholas's Profile

GitHub User: nicholosp

Comments by Nicholas

Avatar

Hi I am new to Ruby on rails, I have followed this cast but i am running into a big issue now,

<%= mp.fields_for :projectmembers do |pm| %>
<%= render 'projectmember_fields', pm_form: pm %>
<% end %>
<tr><td class="addfld"><%= link_to_add "Add", mp, :projectmembers %></td></tr>

Here this render doesnt sends the local variable to the partial i am calling. but when i remove this link_to_add method it gets the local variable. Could you please help me on this

this is the query i have posted

link