title: Rails 3 - link for delete item
body: <p>I have list of images and for every image I have link for deleting. That link looks this:</p>
  
  <pre><code>&lt;%= link_to 'delete image', {:controller =&gt; 'shops', :action =&gt; 'delimg', :imgid =&gt; u.id}, :confirm =&gt; 'Really?' %&gt;
  </code></pre>
  
  <p>def logo
      puts params[:imgid]
      ...
    end</p>
  
  <p>And I am getting an error <strong>Couldn't find Shop with ID=logo</strong> and <strong>app/controllers/shops_controller.rb:17:in `show'</strong> - I tried to add <strong>puts 'IN SHOW</strong> and it really looks, that after click on that link is called method <strong>show</strong>. I have no idea, how it is possible...</p>
  
  <p>Could someone help me, please, where is the problem?</p>