title: link_to using PUT method syntax to a different controller in rails 3
body: <p>I try to call an action of my Gallery controller from a Portfolio view. A Portfolio is made of many galleries.</p>
  
  <p>I try this:</p>
  
  <pre><code>&lt;%= link_to("Heart", gallery_path(gallery), :action =&gt; "like", :method =&gt; :put ,  :remote =&gt; true) %&gt;
  
  &lt;%= link_to("Heart", :controller =&gt; :galleries, :action =&gt; "like", :method =&gt; :put ,  :remote =&gt; true) %&gt;
  </code></pre>
  
  <p>And I obtain:</p>
  
  <pre><code>&lt;a href="/galleries/3" action="like" data-method="put" data-remote="true" rel="nofollow"&gt;Heart&lt;/a&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;a href="/galleries/1/like?method=put" data-remote="true"&gt;Heart&lt;/a&gt;
  </code></pre>
  
  <p>I want to get but i m stuck...:</p>
  
  <pre><code>&lt;a href="/galleries/3/like" data-method="put" data-remote="true"&gt;Heart&lt;/a&gt;
  </code></pre>
  
  <p>Any RAILS God to help me ?</p>