title: Nested Routes and Parameters for Rails URLs (Best Practice)
body: <p>I have a decent understanding of RESTful urls and all the theory behind not nesting urls, but I'm still not quite sure how this looks in an enterprise application, like something like Amazon, StackOverflow, or Google...</p>
  
  <p>Google has urls like this:</p>
  
  <ul>
  <li><a href="http://code.google.com/apis/ajax/" rel="nofollow noreferrer">http://code.google.com/apis/ajax/</a></li>
  <li><a href="http://code.google.com/apis/maps/documentation/staticmaps/" rel="nofollow noreferrer">http://code.google.com/apis/maps/documentation/staticmaps/</a></li>
  <li><a href="https://www.google.com/calendar/render?tab=mc" rel="nofollow noreferrer">https://www.google.com/calendar/render?tab=mc</a></li>
  </ul>
  
  <p>Amazon like this: </p>
  
  <ul>
  <li><a href="http://www.amazon.com/books-used-books-textbooks/b/ref=sa_menu_bo0?ie=UTF8&amp;node=283155&amp;pf_rd_p=328655101&amp;pf_rd_s=left-nav-1&amp;pf_rd_t=101&amp;pf_rd_i=507846&amp;pf_rd_m=ATVPDKIKX0DER&amp;pf_rd_r=1PK4ZKN4YWJJ9B86ANC9" rel="nofollow noreferrer">http://www.amazon.com/books-used-books-textbooks/b/ref=sa_menu_bo0?ie=UTF8&amp;node=283155&amp;pf_rd_p=328655101&amp;pf_rd_s=left-nav-1&amp;pf_rd_t=101&amp;pf_rd_i=507846&amp;pf_rd_m=ATVPDKIKX0DER&amp;pf_rd_r=1PK4ZKN4YWJJ9B86ANC9</a></li>
  <li><a href="https://rads.stackoverflow.com/amzn/click/com/0596516177" rel="nofollow noreferrer" rel="nofollow noreferrer">http://www.amazon.com/Ruby-Programming-Language-David-Flanagan/dp/0596516177/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1258755625&amp;sr=1-1</a></li>
  </ul>
  
  <p>And StackOverflow like this:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/users/169992/viatropos">https://stackoverflow.com/users/169992/viatropos</a></li>
  <li><a href="https://stackoverflow.com/questions/tagged/html">https://stackoverflow.com/questions/tagged/html</a></li>
  <li><a href="https://stackoverflow.com/questions/tagged?tagnames=html&amp;sort=newest&amp;pagesize=15">https://stackoverflow.com/questions/tagged?tagnames=html&amp;sort=newest&amp;pagesize=15</a></li>
  </ul>
  
  <p>So my question is, what is best practice in terms of creating urls for systems like these?  When do you start storing parameters in the url, when don't you?  These big companies don't seem to be following the rules so hotly debated in the ruby community (that you should almost never nest URLs for example), so I'm wondering how you go about implementing your own urls in larger scale projects because it seems like the idea of not nesting urls breaks down at anything larger than a blog.</p>
  
  <p>Any tips?</p>