title: Nested Form missing params
body: <p>I am having a problem getting the params of a nested form in the following case:  </p>
  
  <p>I have these 3 nested <strong>models</strong>:</p>
  
  <p>Meeting:</p>
  
  <pre><code>class Meeting &lt; ActiveRecord::Base
   has_many :participants
  end
  </code></pre>
  
  <p>Participant:</p>
  
  <pre><code>class Participant &lt; ActiveRecord::Base
   belongs_to :meeting
   has_many :connections
  end
  </code></pre>
  
  <p>and Connection:</p>
  
  <pre><code>class Connection &lt; ActiveRecord::Base
   belongs_to :participant, :foreign_key =&gt; 'connected_participant_id'
  end
  </code></pre>
  
  <p>And these <strong>routes</strong>:</p>
  
  <pre><code>resources :meetings do
      resources :participants
  end
  
  resources :participants do
      resources :connections
  end
  </code></pre>
  
  <p>I succesfully made a form to create participants and add them directly to a meeting with something like this:</p>
  
  <p>In the  <strong>view > meeting/show</strong>:</p>
  
  <pre><code>= link_to 'Add current user to meeting', new_meeting_participant_url(@meeting)
  </code></pre>
  
  <p>In the <strong>view > participant/new</strong>:</p>
  
  <pre><code>= form_for [@meeting, @participant] do |p|
      *form details*
  </code></pre>
  
  <p>When creating i successfully receive params[:meeting_id], however when doing the same when creating a connection between participants with the following configurations I don't get the params I need</p>
  
  <p>in the <strong>same view > meeting/show</strong>:</p>
  
  <pre><code>- @meeting.participants.each do |participant|
      = link_to new_participant_connection_url(participant)
  </code></pre>
  
  <p>and again the form <strong>view > connection/new</strong>:</p>
  
  <pre><code>= form_for [@participant, @connection] do |c|
  </code></pre>
  
  <p>by debugging i noticed the needed params[:participant_id] are not set.</p>
  
  <p>Can anyone please help me with my problem? I'm really stuck here.</p>