Rails:生成 simple_form 3.4.0 并集成 bootstrap-sass

Rails: Generate simple_form 3.4.0 with integration of bootstrap-sass

我是 rails 的新手,为了完成任务 我尝试了命令

rails generate simple_form:install --bootstrap

按照建议,但最终出现错误,即-

Running via Spring preloader in process 1006
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--jbuilder'; got true (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--helper'; got true (boolean)
Expected string default value for '--assets'; got true (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Expected string default value for '--test-framework'; got false (boolean)
Could not find generator 'simple_form:install'.
Maybe you meant 'integration_test', 'scaffold' or 'active_record:model'
Run `rails generate --help` for more options.

谁能帮我弄清楚哪里出了问题以及我必须做什么?

我已经安装了 gem simple_form(3.4.0) 和 bootstrap-sass(3.3.7) 使用命令

 gem install simple_form
 gem install bootstrap-sass
 bundle install

在运行 bundle install 之前,您必须将 simple_formbootstrap-sass 放入您的 Gemfile 中。如果问题仍然存在,请post你的 Gemfile 进行澄清。

将这两行放在 gemfile 中,如下所示...

gem 'simple_form'
gem 'bootstrap-sass'

然后触发命令 bundle install