Problem:
params = {:name => 'bob', :sitter => 'dog', children => 'foo'}
ActiveRecord model 'FooBar' with columns named 'name', 'sitter',
'houseboat'.
If I do
boo = FooBar.new(params)
I get a error stating that method 'children=' does not exist for class
FooBar.
I think it would make more sense if the items in the hash with keys that
are not attributes of the model should be dropped without an error.
I have a solution for this but I wanted to make sure that this is
incorrect behavior for this method before I spend time fixing it.
Charles
--
Charles Dupont Computer System Analyst School of Medicine
Department of Biostatistics Vanderbilt University
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core