[Rails] Re: validates_associated on has_many :through polymorphic exception

2008-11-22 Thread Gerhard
Managed to figure this one out not a full half hour after making the post. Solution in the Gist. On Nov 21, 11:13 pm, Gerhard <[EMAIL PROTECTED]> wrote: > I have a Company which has_many AddressLinkings as AddressLinkable > (polymorphic). The same Company has_many Addre

[Rails] Re: Phusion Passenger Version Check

2008-11-22 Thread Gerhard
In terminal do gem list | grep passenger On Nov 21, 8:46 pm, Dan Paul <[EMAIL PROTECTED]> wrote: > Hello, > > Sry if this sounds stupid, but how do I check to see what version of > phussion passenger I am running, I did a recent upgrade and want to > make sure the new version is in use.  Thanks.

[Rails] validates_associated on has_many :through polymorphic exception

2008-11-22 Thread Gerhard
I have a Company which has_many AddressLinkings as AddressLinkable (polymorphic). The same Company has_many Addresses through AddressLinkings. When creating a new Company and defining some Addresses for it, I want to validate the Addresses as well before saving anything to the database. The issue