title: Calling a controller action with link_to
body: <p>After playing around with links in Rails for a view hours i've managed to actually get a link to invoke a method in my controller. But i still don't understand why all my other attempts failed. Im hoping you could help me out with that.</p>
  
  <p>I have the scaffold "Cars". When in the show view for a car, id like to click a link that invokes the method "drive" in my Car controller.</p>
  
  <p><strong>This WORKS:</strong> <code>&lt;%= link_to "Drive", drive_car_path(@car) %&gt;</code></p>
  
  <p>It seems this only works if i have this is my routes.rb:  </p>
  
  <pre><code>resources :cars do
    member do
      get 'drive'
    end
  end
  </code></pre>
  
  <p>Why does <code>&lt;%= link_to "Drive", car_path, :method =&gt; :drive %&gt;</code> not work? </p>
  
  <p>Do I need to put a <code>GET</code> in the <code>routes.rb</code> file for every method I create in my controller?</p>
  
  <p>I can't seem to find any sites explain how to use links together with routes. They only seem to come separate. Do you guys have any easily understandable tutorials on this?</p>