1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

Ruby on Rails: Nested Resources in Rails 2

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    5.00/5

Ruby on Rails » Routes — almost 10 years ago
Nested resources were introduced in Rails 1.2 and are touted as the Right Way to do REST with parent-child model associations. If your app has a url that reads something like /employees?company_id=1, a switch to nested resources would cause it to read /companies/1/employees. Here's a detailed guide to developing with these new changes in mind.

Comments

Your Comment

You must be logged in to post a comment.