I read the help and tried the following command to skip the creation of tests, assets and support files
$ bin/rails generate controller home index --helper false --assets false --controller-specs false --view-specs false create- app/controllers/home_controller.rb route get "home/index" invoke erb create app/views/home create app/views/home/index.html.erb invoke rspec error false [not found] error false [not found]
As you can see, the result above works, and only controller, routes and views generated. But since the last two lines are interesting:
error false [not found] error false [not found]
Obviously, the rails do not seem to resemble the syntax --option-name false . so is this error because i used the wrong syntax? If so, what is the right way? Thanks
generator ruby-on-rails ruby-on-rails-3
CuriousMind Dec 26 '12 at 20:26 2012-12-26 20:26
source share