[英]Rails: Generate simple_form 3.4.0 with integration of bootstrap-sass
I am new to rails and in order to do the task I tried the command 我是Rails的新手,为了完成任务,我尝试了以下命令
rails generate simple_form:install --bootstrap
as was recommended, but end up having errors, which are- 按照建议,但最终出现错误,这些错误是-
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.
Can anyone help me figure out what has gone wrong and what I must do? 谁能帮我弄清楚哪里出了问题,我该怎么办?
I have installed the gems simple_form(3.4.0) and bootstrap-sass(3.3.7) using the commands 我已经使用命令安装了gems simple_form(3.4.0)和bootstrap-sass(3.3.7)
gem install simple_form
gem install bootstrap-sass
bundle install
You have to put simple_form
and bootstrap-sass
into your Gemfile before runnign bundle install
. 在运行runnign bundle install
之前,必须将simple_form
和bootstrap-sass
放入Gemfile中。 If the problem persists, please do post your Gemfile for clarification. 如果问题仍然存在,请发布您的Gemfile进行澄清。
Put this two line in gemfile as below... 将这两行放在gemfile中,如下所示...
gem 'simple_form'
gem 'bootstrap-sass'
then fire command bundle install
然后执行命令bundle install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.