hi,
Open /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
base.rb, line 2029, and change "attributes_with_quotes(false, false)"
by
"attributes_with_quotes(false)".
2007/11/20, Jo?l AZEMAR <jlstar at free.fr>:>
> hello, the same code work well with rails-1.2.5 but crash with
> rails-1.99.0. If you update an object you have this error message:
>
> ArgumentError (wrong number of arguments (2 for 1)):
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> base.rb:2029:in `attributes_with_quotes''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> base.rb:2029:in `update_without_lock''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> locking/optimistic.rb:70:in `update_without_callbacks''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> callbacks.rb:240:in `update_without_timestamps''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> timestamp.rb:38:in `update''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> base.rb:2022:in `create_or_update_without_callbacks''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> callbacks.rb:213:in `create_or_update''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> base.rb:1774:in `save_without_validation''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> validations.rb:891:in `save_without_transactions''
> /Library/Ruby/Gems/1.8/gems/activerecord-1.99.0/lib/active_record/
> transactions.rb:118:in `save''
>
>
> I have created a fresh and clean project for test.
>
> best reagrds
> _______________________________________________
> Betternestedset-talk mailing list
> Betternestedset-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/betternestedset-talk
>
--
Pieters
Aimeric
EPITA 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071121/009ef6de/attachment.html