Rails 6 (beta 3) is out and many clients are asking to upgrade to the latest version. Remember, Rails 6 is still in it’s beta version. If you start a project, I would recommend to use stable version of rails i.e. Rails 5.2.x.
But If you want to start with Rails 6 then Rails 6 require Ruby version 2.5+.
If you are using RVM check your ruby version is greater than or equals to 2.5.0 then you can install rails 6 by creating a folder (say folder name is clecotech), then go to that folder and create a Gemfile with writing source and gem rails using below command.
$ mkdir clecotech
$ cd clecotech
$ echo "source 'https://rubygems.org'" >> Gemfile
$ echo "gem 'rails', git: 'https://github.com/rails/rails.git'" >> Gemfile
$ bundle install
You will see below lines after running bundle install command:
Fetching gem metadata from https://rubygems.org/.........
Using rake 12.3
After running bundle command run below command to create project files and folders
$ bundle exec rails new . --dev --force
run git init from "."
After creating folders structures and configuration file you just have to start the rails server from the command below:
$ bundle exec rails server -d
=> Booting Puma
=> Rails 6.0.0.alpha application starting in development
=> Run `rails server --help` for more startup options
Your rails 6 project is started and running.
Let us know if you got any problem setting up rails 6 projects or anything.
Here in ClecoTech we are the team of expert rails developers who can work on any version of Ruby on Rails. and we will love to help if you find any problem running the application.
Happy Coding :).
Rails 6 release notes
Rails Upgrading Guide
https://99interview.com: #1 Mock Interview by MNC’s Experts
The social media marketing organization experts’ style strategic as well as dynamic sociable strategies tailored to your business as well as your brand.
design company website