mercredi 21 avril 2021

Rails schema dump says method_missing_with_paginate

I've got a Rails app I've updated to 3.1. I'm trying to run for the first time. So I'm attempting to build the database schema for the first time.

But I'm getting this error "method_missing_with_paginate" for class "Class"...

fonso@mybox:~/my-dev$ rake db:schema:dump
/home/fonso/fgdb-dev/vendor/soap4r/xsd/iconvcharset.rb:9:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.
DEPRECATION WARNING: ActiveRecord::Associations::AssociationCollection is deprecated! Use ActiveRecord::Associations::CollectionProxy instead. (called from <top (required)> at /home/fonso/fgdb-dev/config/application.rb:16)
DEPRECATION WARNING: ActiveRecord::Associations::AssociationCollection is deprecated! Use ActiveRecord::Associations::CollectionProxy instead. (called from <top (required)> at /home/fonso/fgdb-dev/config/application.rb:16)
rake aborted!
NameError: undefined method `method_missing_with_paginate' for class `Class'
/home/fonso/fgdb-dev/config/application.rb:16:in `<top (required)>'
/home/fonso/fgdb-dev/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Here is my gemfile

source 'http://rubygems.org'

gem 'rails', '3.1.0'

gem 'pg', '~> 0.10.1pre209'


gem 'will_paginate', '~> 2.3.17'
gem 'soap4r-middleware', '~> 0.8.6'
gem 'soap4r',  '~> 1.5.6'
gem 'prawn-labels', '~> 0.11.3.0'
gem 'nokogiri-plist', '~> 0.3.0'
gem 'rails_sql_views', '~> 0.8.0' #all versions (0.1.0 - 0.8.0)of this crap require ruby 2.3. we can not use 2.3
gem 'prototype_legacy_helper', '0.0.0', :git => 'https://github.com/rails/prototype_legacy_helper.git'

# config.gem 'pg', '~> 0.20.0'
# pg 0.20.0 may be the version needed to overcome the t.tgisconstraint error. Only works with ruby 2.0
# can we use this..https://rubygems.org/gems/postgres-pr ??

"method_missing_with_paginate" makes me think this has something to do with will_paginate.

Can anyone point me in the right direction on fixing this?

Aucun commentaire:

Enregistrer un commentaire