ActiveResource and (polymorphic) associations

Hi,

I’m just playing with ActiveResource and I did’nt find anything about
the support of (polymorphic) associations.
Is there a support at all?

Thanks in advance

Yes there is support.

“did’nt find anything about the support of (polymorphic associations”

I googled “ActiveRecord polymorphic associations” and got this link:
http://wiki.rubyonrails.org/rails/pages/HowToUsePolymorphicAssociations

Are you sure you searched?


Ryan B.

Feel free to add me to MSN and/or GTalk as this email.

Ryan B., i think that you commit a mistake. The original thread speak
about
ActiveResource and not about ActiveRecord!!!

I found a old thread speaking about this on:

http://www.nabble.com/-Rails--associations-support-in-ActiveResource--to7449910.html

On Dec 27, 2007 8:47 PM, Ryan B. [email protected] wrote:


Ryan B.
http://www.frozenplague.net
Feel free to add me to MSN and/or GTalk as this email.


Everton J. Carpes
Mobile: +55 53 9129.4593
MSN: [email protected]
UIN: 343716195
Jabber: [email protected]

“If art interprets our dreams, the computer executes them in the guise
of
programs!” - Alan J. Perlis

Whoops, you’re right. I just saw ActiveReor* and thought it was
ActiveRecord. Sorry.

What are you trying to do with this rails3000?


Ryan B.

Feel free to add me to MSN and/or GTalk as this email.

@Everton: Thanks for the link.
I have similar models as described there and the error message is the
same.
Seems that there is no simple solution to this problem…

I recently wrote a restful app with polymorphic associations.
The ResourceController plugin was of great help to me:
http://jamesgolick.com/resource_controller/rdoc/index.html

Ohh, very, very, very nice plugin!!!

Until today, i wrote polymorphic code to overwrite helpers and set scope
by
hand (using before and around filters, etc).

:smiley: Thanks!!!

On Dec 28, 2007 1:03 PM, Java [email protected] wrote:

the support of (polymorphic) associations.
Is there a support at all?

Thanks in advance


Everton J. Carpes
Mobile: +55 53 9129.4593
MSN: [email protected]
UIN: 343716195
Jabber: [email protected]

“If art interprets our dreams, the computer executes them in the guise
of
programs!” - Alan J. Perlis