This project is archived and is in readonly mode.

#2219 ✓invalid
Di Marcello

nested_attributes_for belongs_to polymorphic

Reported by Di Marcello | March 12th, 2009 @ 11:07 AM | in 2.x

I don't know if this is a missing functionality, or there is a trick i couldnt find.

But when i try to create a new belongs_to polymorphic association through a nested form, it off course fails, because there is no build method for it.

Is this functionality wanted as a default (eg. with a :type attribute given), then i'll create a contribute (i'm not so familiar with testing, so i'll need help with that). Or should everyone who needs this functionality make its own build method for polymorphic associations.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket