[Rails] problem with ar-extensions import

2009-07-14 Thread Jack H
hi! I'm using rails 2.3.2 with ar-extensions 0.9.1 (mysql 5) I'm trying to use the import() method on one of my AR models and it works but it still runs a single insert query for each record. Oddly, MyModel.supports_import? returns false even though that value seems to be hard coded ... ? [1] d

[Rails] accepts_nested_attributes_for and has_one

2009-07-08 Thread Jack H
Hi all, I'm seeing some unexpected behaviour in a nested model and I'm not sure if it's a bug or if I'm doing something wrong. When assigning nested attributes, the associated object gets replaced with a new record. Example code: class Car < ActiveRecord::Base belongs_to :driver end class Ca