unk
> *To:* rubyonrails-talk@googlegroups.com
> *Sent:* Sunday, September 6, 2009 4:47:51 AM
> *Subject:* [Rails] Re: Polymorphic many-to-many relationship?
>
>
> Managed to get it working by changing the fixture to:
> resource: <%= Fixtures.identify(:row_house) %>
&g
Have you tried has_many_polymorphs (2.13)
http://m.onkey.org/2007/8/14/excuse-me-wtf-is-polymorphs
From: Heinz Strunk
To: rubyonrails-talk@googlegroups.com
Sent: Sunday, September 6, 2009 4:47:51 AM
Subject: [Rails] Re: Polymorphic many-to-many relationship
Managed to get it working by changing the fixture to:
resource: <%= Fixtures.identify(:row_house) %>
resource_type: BuildingType
Still don't like it cause that's not what RoR is about. Any help would
be still highly appreciated :)
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~--
3 matches
Mail list logo