rake db:migrate 

gives an error:

Cannot find the path specified.

where to dig?

Environment:

  • Windows 10

  • RubyMine 2016

  • All gems were set successfully. (bundle install works)

  • Is this all error message? And I will repeat the advice that I gave to many: work with RoR in Unix-like OS, at least in virtual machines, even in this situation, you will save a lot of time. - D-side
  • and if you just run rake without parameters? - Mikhail Vaysman

2 answers 2

The solution turned out to be trivial:

 rails db:migrate 

and I just didn’t see this decision on the error page ...

  • So do you also have Rails 5? : D - D-side
  • A better learn on 4ke? - Andrew
  • It is better to study on what your teaching materials are built on. - D-side

Faced the same problem. This is due to the fact that gem ruby ​​make is not installed. I decided like this:

 gem install rake 
  • No, don't do that. You need to install dependencies via bundler , with the command bundle or bundle install . And the rails new command does it on its own after building the skeleton of the application, installing including rake . And to put each gem as a separate team for a long and pointless. - D-side
  • Of course you are right, but for example, I created a new project through rails new and the ruby ​​make gem was not installed. I could do the same thing just by changing the rake command to rails , and in the tutorials, rake shown everywhere. As I understood in version 5 of rails, something has changed regarding ruby ​​make. Does the question really need this heme in 5 rails? And if for example I want to add a new gem to the project, then it is necessary to edit the gemfile and run the bundle install again? - newbie_rails
  • @newbie_rails you don’t have to ask this question at all; in your gemfile there should be what you directly use, and the Bundler will deliver what is necessary for them. Yes, the procedure for adding a heme is correct. Rake in Rails dependencies, so the Bundler could not complete successfully without installing it. - D-side