RailsCasts #415 Upgrading to Rails 4
#415 Upgrading to Rails 4 - RailsCasts
- prepare
- all of gems are up to date
- all test pass
- rais '4.0.0.rc1'
- sass, coffee
- remove group :assets
- RAILS_ENV=production bundle exec rake asset:precompile
- application.rb
- bundle update
- bundle outdated
- paper_trail (branch rails4 on :github)
- run rspec
- caches_page
- gems
- gem 'protected_attributes'
- gem 'rails-observers'
- gem 'actionpack-page_caching'
- gem 'actionpack-action_caching'
- refactor and fix later
- routes
- match -> get OR via: :all
- put -> patch
- mass-assign
- protected_attribute
- whitelist_attributes = false
- config
- eager_load
- Remove whiny_nils
- assets
- secret_token / secret_key_base
- encrypted cookie
- new rails 4 app and compare
- deprecations
- scope -> use lambda ( -> { } )
- find_all_by -> where
- strong_parameters
- Move attr_accessible to controller -> model_params
- params.require(:model).permit( ... )
- remove protected_attribute gem
- remove config options
- Move attr_accessible to controller -> model_params
- before_action
- Yay!
よくまとまってる