Issues generating controllers with Rails -
i created rails application successfully. page loads on localhost:3000 without problem. when run
rails generate controller demo index it returns
sweet$ rails generate controller demo index identical app/controllers/demo_controller.rb route 'demo/index' invoke erb exist app/views/demo identical app/views/demo/index.html.erb invoke test_unit identical test/controllers/demo_controller_test.rb invoke helper identical app/helpers/demo_helper.rb invoke test_unit invoke assets invoke js identical app/assets/javascripts/demo.js invoke css identical app/assets/stylesheets/demo.css but it's not creating files. checked directory, , files don't exist in directories.
here directory i'm in:
sweet$ pwd /users/sweet/dev/simple_cms which app root.
i tried deleting entire directory , recreating app 3 times. killed databases in mysql via root user. ran bundle install. app created each time.
does know rails stores logic checking if file exists or not when generating controllers/views?
i commented out "spring" in gemfile, ran
bundle update bundle install and retried making controller, , worked.
it must have been running original application had deleted long enough "make run faster".
"ruby on rails : rails generate controller not work" had answer symptom bit different in getting output.
Comments
Post a Comment