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

Comments on this tutorial

Discuss this tutorial

You must be logged in to comment on a tutorial.