rails new application launch command

How to launch a new application in Ruby on Rails

I will output to myself only within the range of my memory!

Terminal


rails _6.0.0_ new test -d mysql

Terminal


rails db:create

Terminal


rails g model test

db/migrate/2020 ・ ・ ・ ・ ・


t.string :name, null: false (The description on the line here is appropriate)

Terminal


rails db:migrate

config/routes.rb


root to tests#index (The line here is also appropriate)

Terminal


rails g controller tests

java:app/controller/tests.controller.rb


def index
  @tests = Test.all
end

database.yml


utf8 ○○ ・ ・ ・ Only utf8

java:app/views/index.html.erb


Write HTML here

that's all!

I wrote everything up to this point in my memory. I think there are some things that are missing or wrong, but if there are any mistakes, I can tell by looking at the error, so please do not believe 100% if you refer to this!

That's all from the scene!

Recommended Posts

rails new application launch command
Ruby on Rails application new creation command
[Rails] Launch a new project
Rails Basics of creating a new application
[Rails] Migration command summary
Launch Rails on EC2
About rails application server
[Rails] rails db command summary
[Rails] Create an application
docker-compose command list (for Rails)
What to do when you launch an application with rails
[Rails] New app creation --Notes--
[Rails] Create new files required for the application at once
Rails web server and application server
I got a warning message with the rails _6.0.3_ new hello_myapp command
Install Rails in the development environment and create a new application
Rails new fails to install mysql
Preparing to create a Rails application
Introducing full calendar to Rails application
[Rails] Creating a new project with rails new
Create a new app in Rails
First launch judgment of Android application
[Rails] How to add new pages
Launch Rails on EC2 (manual deployment)
[Rails] I tried deleting the application
Chewing Rails Tutorial [Chapter 2 Toy Application]