0

请帮助我了解如何将 rails 3.0.0 升级到 rails 3.2.13。这是我的 GemFile,这里要进行哪些更改?

# Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed.
source 'http://rubygems.org'
gem 'eventmachine'
gem 'rails', '3.0.0'
#gem 'parseexcel'
gem 'will_paginate', ">=3.0.pre", :require => 'will_paginate'
gem 'gbarcode',:git =>'git://github.com/cameroncox/gbarcode.git',:branch =>'ruby1.9'
gem "pg"
gem "attr_encrypted"
gem "spreadsheet", "~> 0.7.5"
#gem "spreadsheet-excel"
#gem 'jquery-rails' 
gem 'prototype_legacy_helper', '0.0.0', :git => 'git://github.com/rails/prototype_legacy_helper.git'
#gem "dynamic_form"    this is for depricate the "error_message for " helper in rails 3
gem 'time_diff', '0.3.0'
gem "fastercsv"
gem 'rails-dev-boost', :git =>  'git://github.com/thedarkone/rails-dev-boost.git', :require =>  'rails_development_boost'
#gem "galetahub-simple_captcha", :require => "simple_captcha"
4

1 回答 1

0

不幸的是,从 Rails 3 到 3.2.x 的变化不仅仅是 Gems。它还引入了资产管道和其他一些变化。 编辑我错了,实际上资产管道是在 Rails 3.1 上引入的。

Ryan Bates 有一个关于此升级的非常好的截屏视频 http://railscasts.com/episodes/318-upgrading-to-rails-3-2

我还建议您阅读发行说明,以更好地了解 Rails 3.2 的功能。 http://guides.rubyonrails.org/3_2_release_notes.html 编辑以及 3.1 的发行说明http://guides.rubyonrails.org/3_1_release_notes.html

我希望它有所帮助。

于 2013-11-07T10:43:55.703 回答