title: rails link_to controller action
body: <p>I show in my homepage 4 pictures, and when a user click on one of it, I want to change a parameter :asked in my db.</p>
  
  <p>In my view I've added</p>
  
  <pre><code>&lt;%= link_to image_tag(friends.picture), {:controller =&gt; "static_pages", :action =&gt; "recomend", :id =&gt; friends.user_id} %&gt;
  </code></pre>
  
  <p>In the Static_Pages_Controller I have</p>
  
  <pre><code>def recomend
    a = Friends.find_by_user_id(params[:id])
    a.update_attribute(:asked, true)
  end
  </code></pre>
  
  <p>And in routes.rb </p>
  
  <pre><code>resources :static_pages do
   resources :recomend
  end
  </code></pre>
  
  <p>but when I click on it, the server refresh my home (why?!) and in the server logs i see</p>
  
  <pre><code>Started GET "/auth/failure?action=recomend&amp;controller=static_pages&amp;id=101" for 127.0.0.1 at 2012-11-17 19:59:25 +0100.
  </code></pre>