Why is the "Rails new" command not creating the MVC skeleton?

Asked

Viewed 127 times

2

Hello,

I’m having a problem with Rails, when I run the command rails new nome_do_projeto in the terminal it should create the skeleton of folder MVC and the files containing the dependencies but the command only creates the files.

Does anyone know how to make the command also create the necessary folders?

In the terminal it’s like this:

rails new nome_do_projeto
    create
    create  README.md
    create  Rakefile
    create  .ruby-version
    create  config.ru
    create  .gitignore
    create  Gemfile
      run  git init from "."

As shown in the above code, the Rails new project name_name command creates only the required files but does not create the MVC skeleton folders, for example the folder app, bin, config among others.

These are the versions that are on my machine:

ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]

gem -v
3.1.2

rails -v
Rails 6.0.2.1
  • I was able to solve the problem by reinstalling Git on the same disk as Ruby

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.