title: How do I pass more than one parameter into a link_to call where I specify controller and action?
body: <p>I am using a link_to to initiate a controller method that requires two parameters in order to perform the steps I need it to take.  I can't seem to get the syntax right, and I'm wondering if it is because you can't pass more than one parameter in using this particular syntax.  Here is what I have so far:</p>
  
  <pre><code>&lt;%= link_to 'Select',
              {controller: 'groups',
               action: 'associate_subgroup_with_org',
               organization_id: organization.id,
               subgroup_id: @activity.group.id},
              class: 'button' %&gt;
  
  def associate_subgroup_with_org
      @organization = Group.find(params[:organization_id])
      @subgroup = Group.find(params[:subgroup_id])
      @subgroup.parent_group_id = @organization.id
  
      respond_to do |format|
        format.js
      end
  end
  </code></pre>
  
  <p>The link is not working and I never enter my controller action <code>associate_subgroup_with_org</code>.  Can someone help me get the syntax right?</p>