Create an app by specifying the Rails version

Thing you want to do

I want to create a new app by specifying the Rails version

Development environment

Background of the problem

When learning the teaching materials, an error occurred because the version of Rails (-v6) previously installed in Cloud9 and the version of the teaching materials (-v5) were different, and the learning sometimes got stuck. ** I wanted to avoid errors caused by different versions and learn. ** **

Solutions

I did it with the following command.
cd ~/environment gem install rails -v 5 rails _5_ new ○○

Now, even if Rails (-v6) is installed, you can create a new XX application with Rails (-v5).

Solution keywords

You can install rails by specifying version △ with the gem install rails -v △ command. When creating an application by specifying the version, create it with the rails _ △ _ new command.

Recommended Posts

Create an app by specifying the Rails version
[Rails] Create an application
[swift5] How to transition from the app to an external site by specifying the URL
[Rails] Create an echo bot using the LINE Messaging API.
Install by specifying the version of Django in the Docker environment
[Rails] Create an email sending function with ActionMailer (complete version)
Create an app with Spring Boot 2
Create a new app in Rails
Create an app with Spring Boot
Create a calendar from the Calendar class by specifying the year and month
[Rails] Create an evaluation function using raty.js
[Rails6] Create a new app with Rails [Beginner]
Introduced Vue.js to an existing Rails app
Create an iOS shortcut app and quickly open the key with NFC
[Rails 5] Create a new app with Rails [Beginner]
Introduced Vuetify to an existing Rails app
The story of making an electronic New Year's card app with Vue.js + Rails
Nuxt.js × Create an application in Rails API mode
[Rails] How to decide the destination by "rails routes"
My thoughts on the future [Gradle app version ①]
Downgrade an existing app created with rails 5.2.4 to 5.1.6
[Rails] I tried to raise the Rails version from 5.0 to 5.2
Publish the app made with ruby on rails
Rails6.0 ~ How to create an eco-friendly development environment
Let's quickly create an app that uses Firestore! !!
Get your version number in the Android app
Create an EC site with Rails5 ⑤ ~ Customer model ~
Unify the Rails app time zone to Japan time
Create an EC site with Rails 5 ⑩ ~ Create an order function ~
Create an app that uses the weather API to determine if you need an umbrella.
A review of the code used by rails beginners
[No.003] Create an order list screen for the orderer
How to push an app developed with Rails to Github
How to remove the underline displayed by Rails link_to
Create an EC site with Rails5 ⑦ ~ Address, Genre model ~
[Heroku] Associate AWS S3 with the deployed Rails app
Create an EC site with Rails 5 ⑨ ~ Create a cart function ~
Until you publish the app on the App Store by yourself
Create an EC site with Rails5 ④ ~ Header and footer ~
Mandels to create an image of the Mandelbrot set
Create an EC site with Rails5 ⑥ ~ seed data input ~
Three things I learned by re-releasing the web app
[Kotlin] Convert ZonedDateTime to String by specifying the format
[Rails] How to display an image in the view
Create an Android app for those who don't want to play music on the speaker