How to install Rails 3 master from GitHub

后端 未结 3 693
面向向阳花
面向向阳花 2021-02-03 13:09

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.

H

3条回答
  •  孤街浪徒
    2021-02-03 13:36

    You can do this with your rails 3 app Gemfile. Bundler is able to install directly from github and if you dont specify a branch or tag then it will use master. Add this to your Gemfile after you generate your rails 3 app, and then run bundle install and start up your app. After you bundle install it will show you the commit number in Gemfile.lock.. it should be the latest commit number from the master rails repo. Here is what I do in my Gemfile:

    gem 'rails', :git => 'git://github.com/rails/rails.git' 
    #gem 'rails', '3.0.0.rc'

    I just uncomment and comment these 2 lines to switch b/w RC and master... and bundle install.

    Alternately, you can clone the repo and then use your local source in the Gemfile:

    I think it should look something like this (untested):

    gem 'rails', :require => 'rails', :path => "/path_to/rails"

提交回复
热议问题