[RUBY] 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!


rails _6.0.0_ new test -d mysql


rails db:create


rails g model test

db/migrate/2020 ・ ・ ・ ・ ・

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


rails db:migrate


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


rails g controller tests


def index
  @tests = Test.all


utf8 ○○ ・ ・ ・ Only utf8


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]