title: How does the model_path() method work
body: <p>I'm new to ruby on rails and have been playing with some open source code in order to learn.</p>
  
  <p>I am having some issues understanding what the <code>model_path(@model)</code> method returns and how to change it. Specifically, I have a model with an <code>id</code> and a <code>slug</code> and for some reason <code>model_path(@model)</code> always returns the path with the <code>slug</code> and not the <code>id</code>.</p>
  
  <p>Any ideas on why this may be and how I can change this behavior?</p>