http://www.pathf.com/blogs/2008/07/drying-up-rails-controllers-polymorphic-and-super-controllers/
I think the article above pretty much answers my question. But please, if
anyone out there has any thoughts about it, I would love to know!
Thanks,
Marcelo.
On Thu, Feb 12, 2009 at 6:10 PM, Marcelo de Moraes Serpa <
celoserpa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hello list,
>
> What if I have a model called address that is polymorphic, and I also have
> an address resource (as I want to try to follow a RESTful design) -- how
> could I make "polymorphic" nested associations between addresses
controller
> and other related resources (users/1/addresses **and** orders/3/addresses).
> What would be the easiest way to accomplish something like that?
>
> Thanks,
>
> Marcelo.
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---