search for: get_parent_resourc

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

Did you mean: get_parent_resource
2009 Jan 03
1
Finding a nested resource's 'parent' object?
Say I have this setup: class Ticket < ActiveRecord::Base belongs_to :project end map.resources :projects do |p| p.resources :tickets end How would I go about programatically figuring out that Ticket is nested under Project? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.