Ruby on Rails installation method [Mac edition]

Qiita is convenient. (I'm not very used to Github) Even if you stumble during development, some people will give you the same error and explain the solution. That's why I also leave a technical memo in Qitta instead.

# Introducing my environment for the time being

environment version Remarks
macOS Mojave 10.14.6 Macbookpro2017 13 inch
Homebrew 0.95
Ruby 2 system newest version
rails5 5 series

** Ruby framework I will show you how to install Ruby on Rails 5. For beginners. ** **

Premise

● Ruby is installed ● Ruby version is 2.2.2 or higher (because it is Rails 5 series) I will explain in the following procedure

(1) Installation of Homebrew (2) rbev installation (3) Ruby installation (4) Rails installation (5) App creation command (6) Move the directory and check

⑴ Installation of Homebrew

Install Homebrew from the terminal to install the framework Ruby on Rails

  1. Open a terminal. (You can find the terminal from your Mac's Launchpad or Spodlight search)

  2. Enter the following Rails installation command

gem install rails -v "5.2.3
  1. Check the version with the following command to see if it was installed properly.
rails -v

Create a new application

Enter the following command in the console. Rails will provide you with all the files you need to develop your app. rails new ~ (arbitrary app name) is OK

rails new StopWatch  

Check if the app is ready. Cd to any directory

cd /Desktop/StopWatch  

Then, I think Rails has prepared all the in-app files such as the database. This completes the framework introduction work for application development. Thank you for your hard work

Next time content

Next, I would like to describe the controller and routing, how to create and edit views.

Recommended Posts

Ruby on Rails installation method [Mac edition]
[Ruby on Rails] Convenient helper method
Ruby on Rails Elementary
Ruby on Rails basics
Ruby On Rails Association
[Ruby on Rails] NoMethodError undefined method `devise_for'error resolution
Install Ruby / Rails on Mac M1 Big Sur 2021-01
[Ruby on Rails] Let's build an environment on mac
Ruby on Rails development environment construction on M1 Mac
Ruby on Rails address automatic input implementation method
[Ruby on Rails] How to use session method
Method summary to update multiple columns [Ruby on Rails]
Ruby on rails learning record -2020.10.03
Portfolio creation Ruby on Rails
Implementation of Ruby on Rails login function (devise edition)
Ruby on rails learning record -2020.10.04
Ruby on rails learning record -2020.10.09
Ruby on Rails config configuration
[Ruby] I can't install puma on Mac [Rails, etc.]
Ruby on Rails basic learning ①
[Ruby on Rails] about has_secure_password
Ruby on rails learning record-2020.10.07 ②
Ruby installation on WSL2 + Ubuntu 20.04
Commentary on partial! --Ruby on Rails
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Ruby on Rails Refactoring method example summary around MVC
[Ruby] Notes on gets method
Ruby on rails learning record -2020.10.06
Ruby on Rails validation summary
[Ruby on Rails] Search function (model, method selection formula)
Ruby on Rails Basic Memorandum
[Ruby on Rails] undefined method ʻid'for nil: NilClass error resolution method
<Dot installation> Introduction to Ruby on Rails5 Source code comparison
Ruby on Rails record search, create if not find_or_create_by method
Ruby on Rails Overview (Beginner Summary)
[Ruby on Rails] yarn install --check-files
Ruby on Rails variable, constant summary
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
[Ruby on Rails] Introduced paging function
Basic knowledge of Ruby on Rails
Progate Ruby on Rails5 Looking Back
How to use Ruby on Rails
[Ruby on Rails] Add / Remove Columns
Ruby on Rails Japanese-English support i18n
(Ruby on Rails6) "Erase" posted content
[Ruby on Rails] CSV output function
Ruby on Rails 6.0 environment construction memo
[Ruby on Rails] What is Bcrypt?
[Ruby on Rails] Confirmation page creation
Ruby On Rails devise routing conflict
[Ruby on Rails] Comment function implementation
[Ruby on Rails] DM, chat function
[Ruby on Rails] Stop "looping until ..."
[Ruby on Rails] Use the resources method to automatically create routes.
rails method
[Ruby on Rails] Introduction of initial data
[Ruby on Rails] Creating an inquiry form
Ruby on Rails6 Practical Guide cp13 ~ cp15 [Memo]
[Ruby on Rails] View test with RSpec