This tutorial will call the controller Homepage. Run the following command in your Terminal window to create a Homepage controller with an index action.

rails g controller Homepage index
~/rails_react_recipe/config/routes.rb

Rails.application.routes.draw do
  root 'homepage#index'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
Note: On Linux, if you run into the error FATAL: Listen error: unable to monitor directories for changes., this is due to a system limit on the number of files your machine can monitor for changes. Run the following command to fix it:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
To verify that this is working, start your application:

rails s --binding=127.0.0.1
A root route in Rails specifies what will show up when users visit the root URL of your application. In this case, you want your users to see your homepage. Open the routes file located at config/routes.rb in your favorite editor:

nano config/routes.rb

Recommend

How To Set Up a Ruby on Rails Project with a React Frontend Step 3 — Installing Frontend Dependencies

How To Set Up a Ruby on Rails Project with a React Frontend Step 2 — Setting Up the Database

How To Set Up a Ruby on Rails Project with a React Frontend Step 1 — Creating a New Rails Application

Como instalar o Git no Ubuntu 18.04 [Início rápido] Passo 4 — Como configurar o Git

Como instalar o Git no Ubuntu 18.04 [Início rápido] Passo 3 — Como confirmar a instalação bem sucedida

Como instalar o Git no Ubuntu 18.04 [Início rápido] Passo 2 — Instale o Git

Como instalar o Git no Ubuntu 18.04 [Início rápido] Passo 1 — Como atualizar os pacotes padrão

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ4 —サーバーでパスワード認証を無効にする

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ3 — SSHの鍵を使用してUbuntuサーバーを認証する

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ2 — Ubuntuサーバーに公開鍵をコピーする 公開鍵を手動でコピーする

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ2 — Ubuntuサーバーに公開鍵をコピーする SSHを使用して公開鍵をコピーする

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ2 — Ubuntuサーバーに公開鍵をコピーする ssh-copy-idを使用して公開鍵をコピーする

Ubuntu 20.04でSSHの鍵をセットアップする方法 ステップ1 — 鍵のペアを作成する

How To Use Dates and Times in Go Adding or Subtracting Times

How To Use Dates and Times in Go Comparing Two Times

How To Use Dates and Times in Go Working with Time Zones

How To Use Dates and Times in Go Parsing Dates and Times in Strings

How To Use Dates and Times in Go Printing and Formatting Specific Dates Using a Pre-Defined Format

How To Use Dates and Times in Go Printing and Formatting Specific Dates Customizing Date Strings Using the Format Method

How To Use Dates and Times in Go Printing and Formatting Specific Dates

How To Use Dates and Times in Go Getting the Current Time

Entendendo a visibilidade de pacotes em Go Visibilidade dentro de métodos

Entendendo a visibilidade de pacotes em Go Visibilidade dentro de structs

Entendendo a visibilidade de pacotes em Go Definindo a visibilidade de pacotes

Entendendo a visibilidade de pacotes em Go Itens exportados e não exportados

Entendendo a visibilidade de pacotes em Go Pré-requisitos

Установка Jenkins в Ubuntu 20.04 Шаг 4 — Настройка Jenkins

Установка Jenkins в Ubuntu 20.04 Шаг 3 — Открытие брандмауэра

Установка Jenkins в Ubuntu 20.04 Шаг 2 — Запуск Jenkins

Установка Jenkins в Ubuntu 20.04 Шаг 1 — Установка Jenkins