This is the sample application for Ruby on Rails Tutorial: Learn Web Development with Rails by Michael Hartl.
All source code in the Ruby on Rails Tutorial is available jointly under the MIT License and the Beerware License. See LICENSE.md for details.
To get started with the app, clone the repo and then install the needed gems:
$ bundle install --without production
Next, migrate the database:
$ rails db:migrate
Finally, run the test suite to verify that everything is working correctly:
$ rails test
If the test suite passes, you'll be ready to run the app in a local server:
$ rails server
git init git add README.md git commit -m "first commit" git remote add origin https://github.com/daveckw/sample_app.git git push -u origin master
$ git commit -am "Add hello" $ git push $ heroku create $ git push heroku master
$ rails generate controller StaticPages home help
$ git add -A $ git commit -m "Add a Static Pages controller" $ git push -u origin static-pages
I solve it with uninstall all bcrypt gem versions with gem uninstall bcrypt and select option 3 (if exist) and uninstall all bcrypt-ruby gem versions with gem uninstall bcrypt-ruby and select option 3 (if exist) then install bcrypt using gem install bcrypt --platform=ruby then add this line gem 'bcrypt', platforms: :ruby to Gemfile, that is it :D.
##---------------------------------------------##
For more information, see the Ruby on Rails Tutorial book.