I''m interested in showing the usages for a particular project, yet
there is no direct relationship between project and usages.
Project has_many :requests
Request has_many :options
Options belongs_to :asset
Asset has_many :usages
My thinking is I should add a "usages and usages=" method to my
project model. Then I can define the following route.
map.resources :projects, :has_many => [:requests, :usages]
Does this approach make any sense? Any other suggestions?
TIA,
Sean
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---