I am new to ruby ββand rails and am having a problem with controller generators.
In some context:
$ rails -v
Rails 4.1.1
The application was created correctly:
$ rails new test_app
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
[...]
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
run bundle exec spring binstub
* bin/rake: spring inserted
* bin/rails: spring inserted
The server is working fine:
$ rails server
=> Booting WEBrick
=> Rails 4.1.1 application starting in development on http:
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-06-07 11:12:20] INFO WEBrick 1.3.1
[2014-06-07 11:12:20] INFO ruby 1.9.3 (2014-02-24) [x86_64-cygwin]
[2014-06-07 11:12:20] INFO WEBrick::HTTPServer
I can view the default page, but then when I try to go to the next step, this will not work:
$ rails generate controller welcome index
Nothing happens and no files are generated. This is not an option, so I donβt know where I should look for a fix.
I already tried to create a new new application and reinstall the rails, but this does not help.
source
share