Creating Your First Rails App

Rails comes with several commands to make life easier. Run rails --help to see all of the commands.

rails new generates the foundation of a fresh Rails application for you, so let’s start there.

To create our store application, run the following command in your terminal:

Terminal window
$ rails new store

After your new application is created, switch to its directory:

Terminal window
$ cd store
Powered by WebContainers
Files
Preparing Environment
  • Preparing Ruby runtime