How to install a Ruby on Rails plugin from a specific git repository branch

Posted on 12 March 2010

Lots of Ruby on Rails plugins are being updated for Rails 3 and thus for older Rails apps you don't always want to install the latest and greatest version.

Recently I needed to install the Rails 2.3 stable version of the exception notification plugin and so I needed to specify a particular branch in the git repository.

script/plugin install git://github.com/rails/exception_notification.git -r 2-3-stable

The -r option allows you to identifiy the specific branch you're after.

About Paul

Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.

Follow Paul on Twitter

Email: paulsturgess [at] gmail.com

Read more articles in the archive →

Comments...

  • Cool. Thanks for the tip!

    Jim Gay at 24 Jun 10 at 10:19

  • you save me the day! thank U

    michele at 31 Jul 10 at 02:27

Got something to say?