Installing a Ruby on Rails Plugin from a Github Branch

One of the coolest things about Git is how easy it makes working with branches. Rails has been playing catch up with Git's distributed methodologies and recently took a nice step forward. Previously you could only useĀ ./script/plugin install to install from the master branch of a Github repository. Now you can specify the branch name when installing the plugin:

./script/plugin install git:// -r modular

This will install the modular branch of the Restful Authentication plugin. Pretty cool, huh?

At the time of writing this Rails 2.2 has not been released. If you are using Rails 2.1.0 or 2.1.1 you will need to upgrade to Edge Rails for this to work. Otherwise you will have to wait for 2.2 to be released.

comments powered by Disqus