#12 ✓moved_to_github
Brian McManus

Polymorphic Association Definition

Reported by Brian McManus | July 28th, 2009 @ 06:35 PM

I'm guessing you already realize this but the way you are handling options breaks the belongs_to controller declaration if you try to use it like in resources_controller. For example:

belongs_to :user, :post

doesn't work. The parent_from_path? method only looks for/knows about :user if you do that. You have to do:

belongs_to :user
belongs_to :post

That's fine but it should probably be documented somewhere that this is a departure from resources_controller.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Adds context into the RESTful development style.

People watching this ticket