Muscle Ruby on Rails Day 1 ~ Environment Construction ~

What is Ruby

--Dynamic programming language --Everything is an object --All information chunks, codes can be given properties (instance variables) and actions (methods) --Ruby flexibility --Users can freely change the core part --Block: Expressive function --You can add a block to the method that describes how it behaves. --Blocks are influenced by functional languages

What is Ruby on Rails?

--A web application framework written in the Ruby programming language

Environment construction-preparation

Homebrew --Software package management system on Mac --Installs software regardless of package dependencies

rbenv --Ruby version control system --Easily switch between Ruby versions

Ruby --Omitted

Ruby on Rails --Omitted

gem Gem as a Ruby package (also called a library) A package is a collection of useful functions that are part of a program.

bundler bundler is a tool for managing gems, and bundler itself is a type of gem. By using bundler, you can manage gems while maintaining the dependency of multiple gems.

Environment construction-procedure

https://qiita.com/TAByasu/items/47c6cfbeeafad39eda07

Note 1(rbenv)

$ ruby -v
When the version does not change with
As a workaround, hit the code below
$ vi ~/.bash_profile
At the bottom
eval "$(rbenv init -)"Add
Finally, hit the following command
$ source ~/.zshrc

Note 2(Rails app launch)

$cd project name
$ rails server

Recommended Posts

Muscle Ruby on Rails Day 1 ~ Environment Construction ~
Ruby on Rails 6.0 environment construction memo
Rails engineer environment construction ruby2.7.1
Rails environment construction Rails5.2.1 ruby2.5.1 Catalina
[Personal memo] Ruby on Rails environment construction (Windows)
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Environment construction Mac] Ruby on Rails (+ Webpacker handles errors)
[Procedure 1 for beginners] Ruby on Rails: Construction of development environment
Ruby on Rails --From environment construction to simple application development on WSL2
Ruby on Rails development environment construction with Docker + VSCode (Remote Container)
Rails Docker environment construction
Ruby on Rails Elementary
Ruby On Rails Association
[Error] Switch environment construction to use Ruby on Rails oss (open source)
How to solve the local environment construction of Ruby on Rails (MAC)!
Rails6 development environment construction [Mac]
Ruby on rails learning record -2020.10.03
Build a Ruby on Rails development environment on AWS Cloud9
Portfolio creation Ruby on Rails
Ruby on rails learning record -2020.10.04
[Ruby on Rails] Debug (binding.pry)
Ruby on rails learning record -2020.10.05
Ruby on rails learning record -2020.10.09
Ruby on rails learning record-2020.10.07 ②
[Docker] Rails 5.2 environment construction with docker
Ruby on rails learning record-2020.10.07 ①
Cancel Ruby on Rails migration
Offline environment construction Ruby edition
[Super easy] Ruby environment construction
Ruby on rails learning record -2020.10.06
[Rails / MySQL] Mac environment construction
[Ruby on Rails] From MySQL construction to database change
Ruby on Rails validation summary
Ruby on Rails Basic Memorandum
Difficulties in building a Ruby on Rails environment (Windows 10) (SQLite3)
[Ruby on Rails] Read try (: [],: key)
Ruby on Rails variable, constant summary
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
[Ruby on Rails] Introduced paging function
Ruby environment construction summary ~ mac version ~
Basic knowledge of Ruby on Rails
Progate Ruby on Rails5 Looking Back
How to use Ruby on Rails
Ruby on Rails Japanese-English support i18n
(Ruby on Rails6) "Erase" posted content
[Ruby on Rails] CSV output function
[Ruby on Rails] Confirmation page creation
Ruby On Rails devise routing conflict
[Ruby on Rails] Comment function implementation
[Environment construction with Docker] Rails 6 & MySQL 8
[Ruby on Rails] DM, chat function
[Ruby on Rails] Convenient helper method
Troublesome Rails environment construction flow [Windows 10]
[Ruby on Rails] Stop "looping until ..."
Build a development environment where Ruby on Rails breakpoints work on Windows
[Ruby on Rails] Search function (not selected)
[Rails] Addition of Ruby On Rails comment function
[Ruby on Rails] Creating an inquiry form
Ruby on Rails6 Practical Guide cp13 ~ cp15 [Memo]
[Ruby on Rails] View test with RSpec
[Ruby on Rails] Code check using Rubocop-airbnb