search for: caryearscontrol

Displaying 1 result from an estimated 1 matches for "caryearscontrol".

2007 Aug 16
1
Nested REST resource routes without controller name
...o be used for adding new years. Essentially, I want the ability to nest resources, without specifying the nested resource name. I know how to do this without using the resources API, so I''m not looking for a workaround. In the CarsController, I would access a car with params[:id]. In the CarYearsController, I would access a particular year of a car by using params[:car] and params[:id]. (The :id would be the year). Is this just a bad idea? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&quot...