format internet:

…please wait (48% completed)…

Installing a Rails plugin from a github branch

Posted by javier ramirez on October 13, 2010

Today I wanted to install a plugin from github into a rails project. So far so good, you would think. You only need to run script/plugin install and start coding right away.

Unfortunately, the branch of the plugin I need is not the master one, because this applications runs on rails 2.3.x and the master branch has been adapted to rails 3 already.

I could just download the tar file from github, or I could make a git clone and checkout the branch I wanted.. but it turns out I don’t need to do any of those, because old good script/plugin has an option to checkout a specific branch

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

And I can start coding right away.. and that’s exactly what I’m going to do after publishing this post.

Advertisement

7 Responses to “Installing a Rails plugin from a github branch”

  1. بازی said

    please explain more.

  2. hey my spammy friend.. just a quick note to let you know wordpress adds a “nofollow” to all the links, so you are not getting any SEO benefits for including your shitty comments here

  3. WT said

    FYI, this doesn’t work in Rails 3. They changed the flag and I can never remember what it is.

  4. Paco Guzmán said

    Maybe you want to install a specific tag

    script/plugin install http://github.com/galetahub/rails-ckeditor.git -r ‘tag v3.4.1’

  5. google.com said

    Does your website have a contact page? I’m having problems locating it but, I’d
    like to shoot you an e-mail. I’ve got some creative ideas for your
    blog you might be interested in hearing. Either way, great blog and
    I look forward to seeing it develop over time.

  6. If some one wishes to be updated with newest technologies after
    that he must be go to see this web page and be up to date everyday.

  7. Hey! This is kind of off topic but I need some
    help from an established blog. Is it very difficult to set up your own blog?
    I’m not very techincal but I can figure things out pretty fast.
    I’m thinking about making my own but I’m not sure where to start.
    Do you have any points or suggestions? With thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: