Forum: Ruby on Rails active_record: wrong number of arguments (1 for 0)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fc582698581884352e745d1d4c64699d?d=identicon&s=25 Joshua Muheim (josh)
on 2008-11-17 14:45
Hi all

I'm trying to deploy an older Rails app to a new hoster. I uploaded
everything, specified the db connection data and started the app.

Sadly I'm getting the following error:

ArgumentError: wrong number of arguments (1 for 0)
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:in
`initialize'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:in
`new'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:551:in
`scramble41'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:141:in
`real_connect'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:331:in
`connect'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:88:in
`initialize'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
`new'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
`mysql_connection'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in
`send'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in
`connection_without_query_cache='
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/query_cache.rb:54:in
`connection='
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:220:in
`retrieve_connection'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/base.rb:679:in
`table_exists?'
  from
./script/../config/../config/../vendor/plugins/schema_validations/lib/red_hill_consulting/schema_validations.rb:29:in
`inherited'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/active_record/base.rb:253:in
`inherited'
  from ./script/../config/../config/../app/models/kurs.rb:1
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:147:in
`require'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:65:in
`require_or_load'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:30:in
`depend_on'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:85:in
`require_dependency'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:98:in
`const_missing'
  from
./script/../config/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:131:in
`const_missing'
  from (irb):1>>

Can anyone tell me what the problem could be?

Thanks,
Josh
This topic is locked and can not be replied to.