Rails从3.2.2.5升级到4.0.0.12的问题

时间:2019-10-28 14:56:01

标签: ruby-on-rails ruby ruby-on-rails-3

我正在尝试将Rails从版本3.2.22.5升级到版本4.0.12。不幸的是,到目前为止没有成功。看来问题出在简单表单,但升级到较新版本也没有太大变化。该应用程序不是我写的。任何帮助将不胜感激。提前致谢。

我尝试过不同版本的Simple Form gem,但到目前为止没有成功。

我的gemfile:

routes

这是我看到的错误:

source 'https://rubygems.org'

ruby '2.2.10'
gem 'rails', '4.0.12'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'pg', '0.21'
gem 'carrierwave'
gem 'devise', '~> 3.4', '>= 3.4.1'
gem 'mini_magick'
gem 'nazca', '~> 0.2.0'
gem 'whenever'
gem 'quiet_assets', '~> 1.0', '>= 1.0.3'
gem 'polish'
gem 'simple_form', '~> 2.1', '>= 2.1.3'
gem "nokogiri", "1.5.11"
gem "rails_autolink"

gem "capistrano"
gem "capistrano-ext"
gem "capistrano_colors"
gem "rvm-capistrano", require: false

gem "therubyracer"
gem 'cells', '~> 3.11', '>= 3.11.3'

gem "omniauth-facebook"
gem "koala"
gem "awesome_print"

gem 'airbrake'

gem 'ransack', '~> 1.5', '>= 1.5.1'
gem 'kaminari'
gem 'kaminari-bootstrap'
gem 'puma'
gem 'rails4_upgrade', github: 'alindeman/rails4_upgrade'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'

end

group :development, :test do
  gem 'letter_opener', "1.1.0"
  gem 'rspec-rails'
  gem 'factory_girl_rails'
  gem 'capybara'
  gem 'phantomjs'

  gem 'guard'
  gem 'guard-spork'
  gem 'guard-rspec'
  gem 'guard-passenger'
  gem 'guard-pow'
  gem "spork", '~> 1.0.0.rc'
  gem 'spork-rails', '~> 4.0'
  gem "rb-fsevent"
end

gem 'jquery-rails'
gem 'test-unit'



gem 'rails_12factor', group: :production

gem "fog", "~> 1.29.0"
gem "figaro"
gem "rollbar"


编辑: 将简单形式的gem更改为3.1版并尝试捆绑后,我看到了错误:

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    rails (= 4.0.12) was resolved to 4.0.12, which depends on
      actionpack (= 4.0.12)

    simple_form (~> 2.1, >= 2.1.3) was resolved to 2.1.3, which depends on
      actionpack (~> 3.0)

Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    rails (= 4.0.12)

    kaminari-bootstrap was resolved to 0.1.3, which depends on
      rails

    nazca (~> 0.2.0) was resolved to 0.2.0, which depends on
      rails (>= 3.0)

    rails_autolink was resolved to 1.1.0, which depends on
      rails (> 3.1)

    spork-rails (~> 4.0) was resolved to 4.0.0, which depends on
      rails (>= 3.0.0, < 5)

0 个答案:

没有答案