Start a project in Rails 6

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 ''" >> Gemfile
$ echo
"gem 'rails', git: ''" >> Gemfile
$ bundle install

You will see below lines after running bundle install command:

Fetching gem metadata from
Resolving dependencies...
Using rake 12.3

After running bundle command run below command to create project files and folders

$ bundle
exec rails new . --dev --force

create README
create config
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

That’s it.
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 :).

More References:
Rails 6 release notes
Rails Upgrading Guide Mock Interview by MNC’s Experts

About the author

Being the CEO and Founder of ClecoTech International, Mr. Ashish Prajapati is dedicated towards his aim of mentoring young startups into a full-fledged businesses. He is helping startups from America, Europe, India, and various other countries through proper guidance and the use of latest technologies to develop their innovation and ideas into definite realities.


Leave a Reply

Your email address will not be published. Required fields are marked *