Tuesday, 26 May 2020

Ruby on Rails 6 Tutorial: Build your First Rails 6 App



Installing Ruby 2.6.2

You can install Ruby 2.6.2 using RVM.

the following command:

$ rvm install 2.6.2


if you want you can create gemset with the command 

rvm gemset create rails6proj
rvm use gemset rails6proj


Install bundler gem to bundle the gems

gem install bundler


Than you can create rails 6 project with the below command


$ rvm install 2.6.2 


$ rails _6.0.3.1_ new my_first_rails6_proj





the above commands teach us if i want to create new rails version application than I just need to pass the version of rails app

rails _version_ new yourappname 

than
cd my_first_rails6_proj 

bundle install to install all the gems inside your gemset

now your rails6 project is ready to work





2 comments:

  1. This really helped my project. Please also guide

    * why node js needed to start the project.
    * what is yarn and how it works

    thanks for the great post

    ReplyDelete
  2. @arpit thanks , sure upcoming post will cover these topics :)

    ReplyDelete