Displaying 1 result from an estimated 1 matches for "target_klass".
Did you mean:
target_class
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.