After updating from 2.0.2 to 2.1 I got this error when update data in
model
“wrong number of arguments (3 for 2)”
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:
2479:in attributes_with_quotes' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb: 2479:in
update_without_lock’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/locking/
optimistic.rb:70:in update_without_dirty' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/dirty.rb: 137:in
update_without_callbacks’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
callbacks.rb:234:in update_without_timestamps' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ timestamp.rb:38:in
update’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:
2472:in create_or_update_without_callbacks' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ callbacks.rb:207:in
create_or_update’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:
2200:in save_without_validation' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ validations.rb:901:in
save_without_dirty’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/dirty.rb:
75:in save_without_transactions' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ transactions.rb:106:in
save’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
connection_adapters/abstract/database_statements.rb:66:in
transaction' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ transactions.rb:79:in
transaction’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
transactions.rb:98:in transaction' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ transactions.rb:106:in
save’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/
transactions.rb:118:in rollback_active_record_state!' /var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ transactions.rb:106:in
save’
/var/lib/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:
2262:in update_attributes' app/controllers/sections_controller.rb:42:in
create’
Any suggestion ?