Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Rails 3 master from GitHub

I'm using rvm (Ruby Version Manager) and running Rails 3 RC. I need to test an app to see if a bug has been resolved with a recent commit to Rails 3 master on GitHub.

How do I install Rails 3 master from GitHub and then generate a new app?

I can't use gem install rails --pre because I want the edge version, not the release candidate.

Can you suggest a helpful gist or blog post?

All I could find was this: http://weblog.rubyonrails.org/2010/1/1/getting-a-new-app-running-on-edge and it is out-of-date.

Thanks!

like image 315
Daniel Kehoe Avatar asked Aug 16 '10 00:08

Daniel Kehoe


1 Answers

You can create an empty folder, then put a Gemfile inside, with this:

source 'http://rubygems.org'
gem 'rails', :git => 'git://github.com/rails/rails.git'

Then inside the folder, run:

bundle install

Inside the folder again, run:

bundle exec rails new /path/to_my_new_application/appname

And that's it.

like image 52
feroult Avatar answered Oct 06 '22 19:10

feroult