suite This will make the process straightforward Otherwise… It’s a good time to start writing one! If you are not willing to write it, expect tons of debugging work… 3
instead: gem 'rails', github: 'rails/rails'! gem 'rails', '4.0.2'! ! # Use sqlite3 as the database for Active Record! gem 'sqlite3'! ! # Use SCSS for stylesheets! gem 'sass-rails', '~> 4.0.0'! ! # Use Uglifier as compressor for JavaScript assets! gem 'uglifier', '>= 1.3.0'! ! # Use CoffeeScript for .js.coffee assets and views! gem 'coffee-rails', '~> 4.0.0'! ! # Use jquery as the JavaScript library! gem 'jquery-rails'! ! # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks! gem 'turbolinks'! ! # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder! gem 'jbuilder', '~> 1.2'! ! group :doc do! # bundle exec rake doc:rails generates the API under doc/api.! gem 'sdoc', require: false! end! 6
control which params can be directly assigned This logic now lies on the controller # Rails 3! # app/models/comment.rb! attr_accessible :text! ! # Rails 4! # app/controllers/comments_controller.rb! def comment_params! params.require(:comment).permit(:text)! end! 12
Rails 4! get "/auth/:service/callback", to: "services#create"! ! # or! ! match "/auth/:service/callback", to: 'services#create', via: [:get, :post]! Match without specifying method PUT now defaults to PATCH 14
if current release has assets_manifest.yml file Remove /shared/assets/manifest.yml Otherwise move manifest.yml to the current release path (rename it to assets_manifest.yml) and remove original file https://github.com/capistrano/capistrano/wiki/Upgrading-to-Rails-4 16