Ruby on Rails. There is no script folder in the project

Viewed 953

I study Rails with the book "Head First Rails"

steps are:

  1. to create my app with the command "rails new tickets"
  2. run server with "ruby script/server"
  3. "ruby script/generate scaffold ..."

But there is no script folder in the project and I get an error "ruby: No such file or directory -- script/generate (LoadError)" I've found that I need to use "ruby s" to start the server. But how can I run script/generate? Is it a new style of generating folders in the rails project and there is no more script folder? Or did I smth wrong?

I have ruby version 2.4.4 and rails 5.2.1

1 Answers

nowadays it is used rails instead of ruby script/, so try rails server or rails generate scaffold

Related