peepcode-rails-3-upgrade-handbook-1.pdf
(
5530 KB
)
Pobierz
The Rails Upgrade Handbook
9HPSZ<WNYHKL
I`1LYLT`4J(UHSS`
/HUKIVVR
Rails Upgrade Handbook
Rails Upgrade Handbook
1.
Introduction
1.1.
The Big Picture
1.1.1.
Lifecycle changes
1.1.2.
Making controllers flexible
1.1.3.
Where models are concerned
1.1.4.
Other pieces
1.2.
That’s great…but why bother?
1.2.1.
Performance
1.2.2.
New features
1.2.3.
Easier segmentation
2.
Essentials
2.1.
Preliminary steps
2.1.1.
Getting the right Ruby
2.1.1.1.
Mac OS X or other Unix platforms
2.1.1.2.
Windows
2.1.2.
Installing Rails 3
2.2.
Automating some of the upgrade:
rails_upgrade
2.2.1.
rails:upgrade:check
: Find out what needs to be upgraded
2.2.2.
rails:upgrade:routes
: Upgrading routes
2.2.3.
rails:upgrade:gems
: Creating Gemfiles
2.2.4.
rails:upgrade:backup
: Backing up important files
2.2.5.
rails:upgrade:configuration
: Generating your new
configuration files
1
Rails Upgrade Handbook
2.3.
Starting an upgrade with the plugin
2.3.1.
Run the application checks
2.3.2.
Back up important files
2.4.
Regenerate the application
3.
Getting bootable
3.1.
Configuring your app again
3.2.
Configuring the environment
3.2.1.
Converting your routes file
3.2.2.
Setting up the gem bundler
3.3.
Code fixes
3.3.1.
RAILS_*
constants are deprecated
3.3.2.
Converting mailers to the new API
3.3.3.
New Active Record API
3.4.
Minor pre-booting issues
3.4.1.
Delete
new_rails_defaults.rb
3.4.2.
Rack configuration is required
3.5.
Booting the application
3.6.
It’s booted! Now what…?
3.6.1.
Check out your views
3.6.2.
Deprecations coming soon
4.
Improving your application with Rails 3
4.1.
Cleaning up controllers
4.1.1.
Responders
4.1.2.
Cleaner flash messages
4.2.
Creating improved views
4.2.1.
Making your views safer
4.2.2.
Better JavaScript with Rails 3
2
Rails Upgrade Handbook
4.3.
Building better routes
4.3.1.
Routing to Rack applications
4.4.
Improving your model logic
4.4.1.
Better query composition
4.4.2.
Cleaning up your validations
4.4.3.
Caching and relations
4.5.
Building better data classes
4.6.
Exploiting Active Support
4.6.1.
Inheriting attributes (the right way)
4.6.2.
Cleaning up modules with
ActiveSupport::Concern
5.
Case Studies
5.1.
Application Case Study: Perwikity
5.1.1.
Getting to bootable
5.1.2.
A few dangling issues
5.1.3.
Lessons learned
5.2.
Application Case Study: Jamis Buck’s Bucketwise
5.2.1.
Broken to bootable
5.2.2.
Finishing up
5.2.3.
Things to remember
6.
Checksheet: The Upgrade Process
6.1.
First Steps
6.2.
Reconfiguration
6.3.
Fix code
6.4.
Booting
7.
Checksheet: Deprecations
7.1.
General/configuration
7.2.
Plugins
3
Rails Upgrade Handbook
7.3.
Controllers/dispatch
7.4.
Models
7.5.
Views
7.6.
Testing
7.7.
Mailers
4
Plik z chomika:
civer
Inne pliki z tego folderu:
README.pdf
(100 KB)
peepcode-code-review.pdf
(447 KB)
peepcode-git-2.pdf
(1510 KB)
peepcode_unobtrusive_js.pdf
(302 KB)
peepcode-rails-3-upgrade-handbook-1.pdf
(5530 KB)
Inne foldery tego chomika:
Agile Web Development with Rails (4th edition)
crafting rails application
rails for zombies
Ruby on rails 4
Ruby on Rails Beyond the basics
Zgłoś jeśli
naruszono regulamin