rails sqlite adapter error

前端 未结 6 2178
傲寒
傲寒 2020-12-16 12:21

I\'m following the instructions in rails tutorial and got stuck when trying to use the scaffold command.

When running:

rails generate scaffold User n         


        
6条回答
  •  情深已故
    2020-12-16 13:03

    i had this error too, buy my problem was slightly different. the issue is that sqlite3-ruby is deprecated, to be replaced by sqlite3. in michael hartl's webcast, he still used the old sqlite3-ruby.

    I edited my gemfile to use sqlite 1.3.4 instead of sqlite3-ruby 1.3.1. re-ran bundle install, and voila, problem solved!

提交回复
热议问题