• Git Support for Rails Plugins

    pjhyett 17 Mar 2008

    Installing a Rails plugin from GitHub is now as simple as:

    ./script/plugin install git://github.com/pjhyett/auto_migrations.git

    Sweet! Thanks to all involved for making it happen, the changeset is here.

    Now, to figure out gem support…

  • Comments

    railsdog Thu Mar 20 14:15:40 -0700 2008

    Gem support would be interesting.

    timcharper Thu Apr 10 13:07:26 -0700 2008

    It is noteworthy to mention this currently works with EDGE rails

    (at the time of this comment, rails 2.0.2 is the latest rails release)

    moorage Sat Apr 26 17:18:47 -0700 2008

    I’m having a little trouble with this – perhaps I’m missing something? I keep getting “Plugin not found” errors.

    script/plugin install git://github.com/moorage/encryption_fu.git Plugin not found: [“git://github.com/moorage/encryption_fu.git”]

    dejan Thu May 01 04:28:44 -0700 2008

    morrage, as timcharper said, you need rails EDGE for this.

    jrmehle Fri May 23 19:37:26 -0700 2008

    @schof: Rails 2.1 will have gem dependencies. Railscasts has a screencast on it here: http://railscasts.com/episodes/110

    aselder Mon May 26 17:49:07 -0700 2008

    Does script/plugin update work with git repositories.

    timhaines Tue Aug 26 16:19:30 -0700 2008

    Is nice. Will be nicer when update works too.

    bbhoss Tue Oct 21 08:53:20 -0700 2008

    Does this do a submodule init or a full blown repo? I’ve had trouble with cloning plugins as my main repo is a git repo.

    goosetav Mon Feb 23 15:47:28 -0800 2009

    for people who are slow thinkers (like me)—you need git installed first before you can install plugins. Hopefully this will spare someone some wasted effort.

    glennswest Thu May 14 21:36:18 -0700 2009

    Watch out, there is a bug in rails plugin installs when your using Ruby 1.9
    See
    http://mentalpagingspace.blogspot.com/2009/05/ruby-scriptplugin-git-does-not-work-in.html

    ritvijp Sun May 31 16:40:23 -0700 2009

    Hi, I m using Rails 2.3.2 but cannot install git plugins. Dont know why. Keep getting PLUGIN not found. Tried the http thing

    cavneb Mon Jun 01 19:51:20 -0700 2009

    I'm getting the same problem as you, ritvijp. Did you figure it out by chance?

    parkerkohl Sun Jun 07 13:46:45 -0700 2009

    Folks having trouble with rails 2.3+ and installing plugin from git: change git:// to http:// AND add a / at end of address

    taberrr Mon Jun 15 23:49:30 -0700 2009

    thanks parker that worked for me! whew.

    lfei Tue Jun 30 09:23:07 -0700 2009

    I am still having problems with the PLUGIN not found, using: ./script/plugin install http://github.com/sevenwire/bj-plugin.git/

    Please log in to comment.