[RUBY] [Rails] Launch a new project


Specify the version when launching a new project. It's the beginning of everything, so I'll keep a good record.

table of contents

  1. Launch a new project
  2. Create a database
  3. Works with GitHub

1. Launch a new project

Create an application named tabi.


% cd ~/projects
% rails _6.0.0_ new tabi -d mysql

#......Wait for a while to load.
If successfully is displayed, it is successful.

% cd tabi

Go to the new tabi app.

2. Create a database

Before creating the database, change the encoding settings listed in database.yml.


efault: &default
  adapter: mysql2
   #encoding:utf8mb4 ← Edit this to utf8
  encoding: utf8
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: root
  socket: /tmp/mysql.sock

Next, create the database.

% rails db:create

If Created is displayed, it is successful.

Created database 'tabi_development'
Created database 'tabi_test'

It was created. The application base is now complete.

3. Works with GitHub

Finally, I'm using GitHub, so I'll work with it. Commit from your desktop and you're done.


I am a beginner in programming, but I am posting an article in the hope that it will help people who are similarly troubled. This time, I posted it as a record of the first work for personal development. See you next time ~

Recommended Posts

[Rails] Launch a new project
[Rails] Creating a new project with rails new
rails new application launch command
Create a new app in Rails
[JSP, Servlet] Launch a new project and check the connection !!
[Rails6] Create a new app with Rails [Beginner]
Rails Basics of creating a new application
[Rails 5] Create a new app with Rails [Beginner]
Change from SQLite3 to PostgreSQL in a new Ruby on Rails project
[Rails] rails new to create a database with PostgreSQL
Launch Rails on EC2
[Beginner] I stumbled upon launching a project with Rails6
Launch a terminal on VScode
[Rails] Creating a search box
Post a video on rails
[Rails] Make a breadcrumb trail
[Rails] New app creation --Notes--
How to create a new Gradle + Java + Jar project in Intellij 2016.03
I got a warning message with the rails _6.0.3_ new hello_myapp command
Naming convention when creating a new controller or model with rails
Install Rails in the development environment and create a new application
Creating a new user with rails was angry with unknown attribute'password' for User.
Rails new fails to install mysql
Build a Java project with Gradle
Create a Jetty project using Eclipse
Add a search function in Rails.
Preparing to create a Rails application
Create a tomcat project using Eclipse
Launch a stub server with WireMock
[Rails Tutorial Chapter 5] Create a layout
Thinking when introducing a new library
[Rails] How to add new pages
Create a Java project using Eclipse
Launch Rails on EC2 (manual deployment)
Implement a contact form in Rails
Project ruby and rails version upgrade
How to make a Maven project
Create a Maven project with a command
A note of someone who stumbled when trying to create a Rails project