・ Display on the screen
$ rails 5.2.1 new app name -d mysql You can create the necessary files at once
Create a routing def index end in config/routes.rb
Create controller $ rails g controller filename contlloers/applocation_controller.rb HTTP method'filename'=>'filename # index'
View file Create an index.html.erb file in app/views and
Hello World!
・ Save to database
Creating a database rails db:create
Model creation rails g model filename A migration file is created
My Great rails db:migrate
☆WEll DONE(^^♪☆
Recommended Posts