Save 36% for Black Friday! Learn more

squirrool

Joined

60 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Problems with 'generate' command.

1.'Squirrol' is the name of my project folder.
The commans seems to answer properly but all the files he tells me he created, don't actually exist.
Is it possible that RubyMine blocks the commands that the terminal has done?

  1. I also tried to open a new project and all the commands answer properly. The point is i didn't use RubyMine but Sublime: no matter this I tried to cancel the Squirrool project from RubyMine and with the rm -dR squirrool Command, but if i open it again I still have the same problem. While the Squirrool-Test Project that i have never opened through RubyMine works perfectly and fulfills the commands from the terminal.

Thank you

Posted in Problems with 'generate' command.

Hello everyone,
as you read in the title I have an issue with the 'generate' command from the terminal.
following you will find pasted the command i am giving:

MacBooks-MacBook-Pro:squirrool giovanni$ rails generate controller posts index
Running via Spring preloader in process 45137
      create  app/controllers/posts_controller.rb
       route  get 'posts/index'
      invoke  erb
      create    app/views/posts
      create    app/views/posts/index.html.erb
      invoke  test_unit
      create    test/controllers/posts_controller_test.rb
      invoke  helper
      create    app/helpers/posts_helper.rb
      invoke    test_unit
      invoke  assets
      invoke    coffee
      create      app/assets/javascripts/posts.coffee
      invoke    scss
      create      app/assets/stylesheets/posts.scss

The commands looks like it's working but actually it doesn't create files in views controllers and it doesn't add any line at routes.rb.

While on RubyMine 2018.3's consolle the command works.
I use ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
Rails 5.2.2 on MacOs Mojave

Is there someone that can help me understand what's not working on the terminal?
I don't want to do everything on RubyMine.
Thank you,
Giovanni

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.