rails sqlite adapter error

前端 未结 6 2143
傲寒
傲寒 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:00

    Ok I found the problem. I noticed that my Rails installation has both SQLite 1.3.3 and 1.3.4 I changed my Gemfile from:

    gem 'sqlite3', '1.3.3'
    

    to:

    gem 'sqlite3', '1.3.4'
    

    That solved the problem. Thanks @holger-just for pointing me to the relevant line in the error message in their answer.

提交回复
热议问题