title: rails rake routes where are they from
body: <p>When you type </p>
  
  <pre><code> rake routes 
  </code></pre>
  
  <p>a bunch of routes come out, but where are they defined???</p>
  
  <p>I know some are default, and how about the others?</p>
  
  <p>For example, this is a script from a controller, I tried to take off the 's' from do_something, but can't make it work.... are they defined somewhere else too?
  Also, when do they take parameters and when not, how I know it ? Thanks!</p>
  
  <pre><code>def hello
    redirect_to do_things_shop_path(shop)
  end
  
  def do_things
  end
  </code></pre>