10

Click here to load reader

Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Embed Size (px)

DESCRIPTION

Supporting slides for my talk on how to Upgrade from Ruby 1.9.3 to Ruby 2.1, Rails 3.2 to 4.0, Bootstrap 2.3 to 3.0

Citation preview

Page 1: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Upgrading

Bryan Bibat | bryanbibat.net@bry_bibat | speakerdeck.com/bryanbibat

Page 2: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Ruby 2.1

.ruby-version

Page 3: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Ruby 2.1 - RVM

.ruby-gemset

https://rvm.io/workflow/projects#project-file-ruby-version

Page 4: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

LinksRails 3.2 to 4.0

http://guides.rubyonrails.org/upgrading_ruby_on_rails.html

Bootstrap 2.x to 3.0 http://getbootstrap.com/getting-started/#migration

Apps upgradedhttps://github.com/devcon-ph/devcon

https://github.com/phrug/pinoyrb

Boring 1.5 hr 1080p video http://youtu.be/HZqqbJJhN2Y

Page 5: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Make sure you've got tests (LOL)

Page 6: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Rails 4.0

Gemfile + :assets groupConfig

Strong ParametersRoutes

Active Record ScopesDeprecated ActiveRecord Finders / Page Cache

Page 7: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Rails 4.0

binstubs

bundle config --delete bin rake rails:update:bin git add bin

Page 8: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Rails 4.0

Gems... :(

Page 9: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

Bootstrap 3.0

grep | sedand

Firefox Responsive Design Modeare your friends

Page 10: Upgrading to Ruby 2.1, Rails 4.0, Bootstrap 3.0

LinksRails 3.2 to 4.0

http://guides.rubyonrails.org/upgrading_ruby_on_rails.html

Bootstrap 2.x to 3.0 http://getbootstrap.com/getting-started/#migration

Apps upgradedhttps://github.com/devcon-ph/devcon

https://github.com/phrug/pinoyrb

Boring 1.5 hr 1080p video http://youtu.be/HZqqbJJhN2Y