Fixing "wrong number of arguments" Error w/Rails 1.2.3 Upgrade

If you’ve just upgraded your Rails gem from 1.2.2 to 1.2.3 and are getting the following error on database hits..
wrong number of arguments (1 for 0)
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/vendor/mysql.rb:566:in `initialize’

..note that updating RAILS_GEM_VERSION in environment.rb appears to be required. Running a 1.2.2 application on 1.2.3 (even when 1.2.2 and all dependencies installed) will yield this error. Whatever.

4 thoughts on “Fixing "wrong number of arguments" Error w/Rails 1.2.3 Upgrade”

  1. Yes! Thank you! Awesome tip. Very good. Kudos. Bless you. May all your children have white teeth and adroit but appropriate senses of humor!

Leave a Reply

Your email address will not be published. Required fields are marked *