Forum: Ruby on Rails polymorphic nested resources

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2ab31489a58f527712d75f36c446a465?d=identicon&s=25 Marcelo de Moraes Serpa (Guest)
on 2009-02-13 01:11
(Received via mailing list)
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.
2ab31489a58f527712d75f36c446a465?d=identicon&s=25 Marcelo de Moraes Serpa (Guest)
on 2009-02-13 01:35
(Received via mailing list)
http://www.pathf.com/blogs/2008/07/drying-up-rails...

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 <
This topic is locked and can not be replied to.