I am currently learning Rails Guides. I went through the steps but still encountered a mistake.
My Ruby version is ruby 2.1.1p76 and the Rails version is
ruby 2.1.1p76
Change Rails version in your Gemfile:
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.6'
Then run:
bundle install
Make sure that your Rails version now is > 4.1