Nested Resources in Rails 2

Submitted by Adam @ Heroku » 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.
Rating: 5.0/5 | 2,387 clicks | 0 comments | 2 saves | share | report

Additional statistics

Average rating: 5.00/5.0
Clicks today: 1
Clicks this month: 23
Clicks total: 2387
Number of comments: 0
Number of saves: 2