RoR Hartl CH 7 bcrypt error when trying to load Users URL

后端 未结 1 1515
心在旅途
心在旅途 2021-01-27 04:03

I\'m at ch. 7 on the Hartl RoR tutorial.

When I try to load the url /users/1 it\'s supposed to give me the Example User (which I successfully updated in console.

相关标签:
1条回答
  • 2021-01-27 04:37

    See if you have this in your Gemfile:

    gem 'bcrypt-ruby'
    

    If not, add it. Then run bundle install to install it and don't forget to restart the server.

    Tutorial says to install it gem 'bcrypt', '3.1.7' in chapter 6, but it doesn't say anything about restart the server. That's what you normally do after adding a gem.

    Listing 6.33: Adding bcrypt-ruby to the Gemfile.

    https://www.railstutorial.org/book/modeling_users

    0 讨论(0)
提交回复
热议问题