diff options
author | Vinicius Quaiato <vinicius.quaiato@gmail.com> | 2013-03-29 03:04:50 -0300 |
---|---|---|
committer | Vinicius Quaiato <vinicius.quaiato@gmail.com> | 2013-03-29 03:04:50 -0300 |
commit | 9c6ccb3224b40cefa05f3d14a381150059a87a09 (patch) | |
tree | fa0d2129a98b624d282534f1e6814f36b1d5db63 | |
parent | edebf262c41010a77208063848de93ad35de93c9 (diff) | |
download | rails-9c6ccb3224b40cefa05f3d14a381150059a87a09.tar.gz rails-9c6ccb3224b40cefa05f3d14a381150059a87a09.tar.bz2 rails-9c6ccb3224b40cefa05f3d14a381150059a87a09.zip |
info that Gemfile *group :assets* was removed
Adding info that Gemfile *group :assets* was removed onĀ upgrading_ruby_on_rails.md
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 535d536dea..62e2624434 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -31,6 +31,32 @@ If your application is currently on any version of Rails older than 3.2.x, you s The following changes are meant for upgrading your application to Rails 4.0. +### Gemfile + +Rails 4.0 removed the *group :assets* from Gemfile (now you can use only :test, :development and/or :production groups). So change your Gemfile from: +```ruby +group :assets do + gem 'sass-rails', '~> 4.0.0.beta1' + gem 'coffee-rails', '~> 4.0.0.beta1' + + # See https://github.com/sstephenson/execjs#readme for more supported runtimes + # gem 'therubyracer', platforms: :ruby + + gem 'uglifier', '>= 1.0.3' +end +``` +to: +```ruby +gem 'sass-rails', '~> 4.0.0.beta1' +gem 'coffee-rails', '~> 4.0.0.beta1' + +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +gem 'uglifier', '>= 1.0.3' +``` +**note:** don't removing the *group assets* from the Gemfile will cause your assets stop compiling + ### vendor/plugins Rails 4.0 no longer supports loading plugins from `vendor/plugins`. You must replace any plugins by extracting them to gems and adding them to your Gemfile. If you choose not to make them gems, you can move them into, say, `lib/my_plugin/*` and add an appropriate initializer in `config/initializers/my_plugin.rb`. |