Home Contact Sitemap

Preston Lee

Founder, CEO, OpenRain.com

About

During the day I run OpenRain in Phoenix: a Ruby on Rails development shop. During the night... well... I still have to run OpenRain, but when I find time to breathe, I exhale here. If you'd like to get in touch professionally, don't hesitate to contact me via the OpenRain website.

Peace,

Preston

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.

Share/Save/Bookmark

Tags: , ,

. 28 Mar 07 | Computer


Reader's Comments

  1. DT |

    Thanks so much. Just saved me a couple of hours work

  2. Woofster |

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

  3. Michael |

    Thanks a lot. I’ve been searching for this solution for a while.

  4. preston.lee |

    No problem :)



Leave a Reply