Displaying 1 result from an estimated 1 matches for "contactroute".
Did you mean:
contact_routes
2007 Mar 19
0
PGError "unknown column" on polymorphic association column
...does not exist". I ran the
statement in psql, and sure enough, I get the same error. If I quote
the routable_type column's value using single-quotes, I get the
expected results.
My models look like this:
class Party < AR::B
has_many :contact_routes, :as => :routable
end
class ContactRoute < AR::B
acts_as_list
belongs_to :routable, :polymorphic => true
end
I'm on the 1.2 stable branch, using Ruby 1.8.4 and PostgreSQL 8.1.
Thanks !
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/
--~--~---------~--~----~------------~-------~--~----~
You re...