How to install Rails 3 master from GitHub

后端 未结 3 738
面向向阳花
面向向阳花 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:31

    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.

提交回复
热议问题