[Beginner] Rails Tutorial

Introduction

3rd year beginner PG I got a job at SIer, but I'm sick of fighting with Excel every day, so I'll try Rails tutorial to improve my skills. Mainly, I will keep a memorandum of places where I am stuck.

Chapter 1 From Zero to Deployment

1.ExecJS::RuntimeUnavailable I proceeded according to the tutorial, and when I tried to start the rails server, the above error occurred

% rails server
JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

[solution] ・ After adding the following words to the gem file, bundle update  gem 'mini_racer'

Other

  1. How to restore deleted / edited files (before commit)
%git checkout filename
  1. How to restore deleted / edited files (after commit)
1.[git log]Find out the commit id before deletion from
①commit 43a936275d7e3cb56716157e8b68e5e01a968a36
The above is the commit id before deletion
②commit 494cd86906729af3a4c8239a13846c4225dda56b
The above is commit id after deletion

2.Execute the following command to return to the commit id before deletion
% git checkout 43a936275d7e3cb56716157e8b68e5e01a968a36

Recommended Posts

[Beginner] Rails Tutorial
rails tutorial
rails tutorial
rails tutorial
rails tutorial
rails tutorial
rails tutorial
rails tutorial Chapter 6
Rails tutorial test
rails tutorial Chapter 1
Rails tutorial memorandum 1
Rails tutorial memorandum 2
rails tutorial Chapter 7
rails tutorial Chapter 5
rails tutorial Chapter 10
rails tutorial Chapter 9
rails tutorial Chapter 8
Start Rails Tutorial
Rails Tutorial Chapter 5 Notes
Rails Tutorial Chapter 10 Notes
Rails Tutorial Chapter 3 Notes
Rails Tutorial Chapter 3 Learning
[Rails] Learning with Rails tutorial
Rails Tutorial Memorandum (Chapter 3, 3.1)
Rails Tutorial Chapter 4 Notes
Rails Tutorial Chapter 4 Learning
Rails Tutorial Chapter 1 Learning
Rails Tutorial Chapter 2 Learning
Rails Tutorial Chapter 8 Notes
[Beginner] About Rails Session
rails tutorial fighting notes Ⅲ
Rails Tutorial Memorandum (Chapter 3, 3.3.2)
11.1 AccountActivations Resources: Rails Tutorial Notes-Chapter 11
I tried Rails beginner [Chapter 1]
Rails Tutorial (4th Edition) Summary
[Rails Tutorial Chapter 4] Rails-flavored Ruby
I tried Rails beginner [Chapter 2]
[Rails] Implementation of tutorial function
[Beginner] When rails s doesn't work
Ruby on Rails Overview (Beginner Summary)
[Rails Tutorial Chapter 5] Create a layout
rails tutorial chapter 10 summary (for self-learning)
Chewing Rails Tutorial [Chapter 2 Toy Application]
Rails Tutorial (4th Edition) Memo Chapter 6
[Rails g.error]
Rails Tutorial 6th Edition Learning Summary Chapter 10
Rails Tutorial 6th Edition Learning Summary Chapter 7
Rails Review 1
Rails API
Rails migration
Rails Tutorial 6th Edition Learning Summary Chapter 4
[Rails] first_or_initialize
[Rails6] Create a new app with Rails [Beginner]
Rails Tutorial 6th Edition Learning Summary Chapter 9
Rails Tutorial 6th Edition Learning Summary Chapter 6
About Rails 6
What is follow_redirect! Following ?: Rails Tutorial Memorandum-Chapter 7
[Rails Struggle/Rails Tutorial] Summary of Heroku commands
Rails foundation
Rails Tutorial 6th Edition Learning Summary Chapter 5
Rails memorandum