You've just created a brand new Rails application by running rails new myapp. This page is rendered by Rails::WelcomeController, which is mounted automatically when you don't yet have a root route.
"Rails is the framework that maximizes programmer happiness." — David Heinemeier Hansson
About your application's environment
# config/routes.rb Rails.application.routes.draw do # Define your application routes per the DSL in # https://guides.rubyonrails.org/routing.html # Defines the root path route ("/") # root "articles#index" end
What to do next
- Open
config/routes.rband define a root route. - Generate a scaffold:
bin/rails g scaffold Post title:string body:text. - Run migrations:
bin/rails db:migrate. - Start the console:
bin/rails consoleto poke at your models. - Visit the routes table at
/rails/info/routes.
Need help?
The official Rails Guides cover everything from Active Record to Action Mailer. Pair them with the API docs and you'll be shipping in no time.