启动服务器时出现 simple_form 错误

Error from simple_form when starting up the server

我已经从 GitHub 克隆了一个项目,但是当我尝试 运行 rails server 时它抛出一个错误:

=> Booting WEBrick
=> Rails 4.2.4 application starting in development on http://localhost:3000
=> Run rails server -h for more startup options
=> Ctrl-C to shutdown server
[Simple Form] Simple Form is not configured in the application and will use the default values. Use rails generate simple_form:install to generate the Simple Form configuration.
Exiting

然后我尝试运行安装simple_form,但是还是出现同样的错误

[Simple Form] Simple Form is not configured in the application and will use the default values. Use rails generate simple_form:install to generate the Simple Form configuration.
/home/andres/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:261:in `const_get': uninitialized constant User (NameError)
    from /home/andres/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.4/lib/active_support/inflector/methods.rb:261:in `block in constantize'

我在 Rails 4.2.4 安装中使用 gem 的 3.2.0 版本,这可能会导致错误?

错误在您的路由文件中。可能是 "devise_for :users" 行。

您是否尝试设置 Devise 但没有完全设置?好像是这样

查看 https://github.com/plataformatec/devise 文档和设置说明