Rails Kitchen

It's a place to write on stuff I learned recently.

Create Rails Application From Edge Version -- 5.0.0.beta1.1

| Comments

5.0.0.beta1.1 version is released which has some exciting stuffs like Action Cable, API mode, new Rails commands. To test all these new items we need to setup rails application from Edge Version. There are different ways to setup a rails project using Edge version. In this post I am explaining how I setup a project in Rails 5.0.0.beta.
First We need to create an application folder with the name of the application and add a Gemfile.
1
2
3
mkdir app_name
cd app_name
touch Gemfile
and add the following into the Gemfile
1
2
3
4
5
6
source 'https://rubygems.org'
ruby '2.2.3'

gem 'rails', :github => 'rails/rails'
gem 'arel', :github => 'rails/arel'
gem 'rack', :github =>  'rack/rack'
Rails 5 requires Ruby 2.2.2 or greater. Setup the Ruby Environment to Ruby 2.2 or greater then do the bundle install
1
2
rvm use 2.2.3
bundle install
Generate Rails application using the following code
1
bundle exec rails new . --force --dev
The –force flag will allow Rails to overwrite our Gemfile, and the –dev flag tells Rails to point to the edge version of Rails that we just bundled.
That’s it, now we will have a brand new Rails application with Edge Version.

Comments