Rails Tutorial updated for Rails 4.0.1
Nov 1, 2013 • posted by Michael Hartl
I’ve just updated the Ruby on Rails Tutorial book for the newest Rails release, Rails 4.0.1. If you’re updating your sample_app to Rails 4.0.1, you’ll need to change rails
to 4.0.1
and bcrypt-ruby
to 3.1.2
, as seen in the reference sample app Gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0
gem 'rails', '4.0.1'
gem 'bootstrap-sass', '2.3.2.0'
gem 'bcrypt-ruby', '3.1.2'
.
.
.
Then run
bundle install
bundle update
bundle install
rspec spec/
(I’m actually not sure if both calls to bundle install
are necessary, but they can’t hurt.)
As far as I can tell, there are no changes between Rails 4.0.0 and 4.0.1 that affect the Rails Tutorial, but please let me know if you run into any issues.