title: Rails - Form_tag for custom action
body: <p>I have a controller <code>games</code> and a method:</p>
  
  <pre><code>def index
  
  @games = Game.all
  
  end
  
  def set_game
  
  @current_game = Game.find(params[:set_game])
  
  end
  </code></pre>
  
  <p>In my view I have:</p>
  
  <pre><code>&lt;%= form_tag("/games") do %&gt;
  &lt;% @games.each do |g| %&gt;
  &lt;%= radio_button_tag(:game_id, g.id) %&gt;
  &lt;%= label_tag(:game_name, g.name) %&gt;&lt;br&gt;
  &lt;% end %&gt;
  &lt;%= submit_tag "Confirm" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Routes:</p>
  
  <pre><code>  resources :games
  
    match 'games', :to =&gt; 'game#index'
  </code></pre>
  
  <p>How can I make this form work for my <code>set_game</code> method?</p>
  
  <p>Thanks.</p>