HowTo install plugins from github?

I am trying to install the in_place_editing plugin from github.

I have looked at http://railswheels.com/in-place-editing and it
suggests the following command:

./script/plugin install git://github.com/rails/in_place_editing

I have tried this and nothing happens e.g. './script/plugin list' does
not return anything.

Are there some prerequisites that I am overlooking?

Do I have any other options? It concerns me that my ./script/plugin
commands do not seem to be working - a result of an upgrade problem
perhaps ? ( I have recently upgraded my application to Rails 2.2.2 )

Thanks.

I have tried issuing the following command:

./script/plugin --verbose install http://github.com/rails/in_place_editing.git

and I get:

Plugins will be installed using http
git init
git pull --depth 1 http://github.com/rails/in_place_editing.git

But again, I do not see any plugin under my vendor/plugins directory.

I should add that I am developing on an Ubuntu system and using svn to
manage my code.

The command on the site is slightly wrong. You're missing the ".git"
at the end. You need to use the full "git clone URL" when installing a
plugin. You'll see this link on the project page:

http://github.com/rails/in_place_editing

from which you need to run the command:

script/plugin install git://github.com/rails/in_place_editing.git

Jason

Thanks for the response. So I tried:

./script/plugin --verbose install git://github.com/rails/in_place_editing.git

and the following was output to my console:

Plugins will be installed using http
git init
git pull --depth 1 git://github.com/rails/in_place_editing.git

But I still do not see anything in my plugins directory.

What is the 'git' command in the above? Do I need to install this
first?

Hmm, that's odd. It ran perfectly fine for me.

What happens when you do a straight clone of the project ( git clone
git://github.com/rails/in_place_editing.git ) ?

Here's my command and output:

roelofs@trillian (svn) [master]~/proj $ ./script/plugin --verbose
install git://github.com/rails/in_place_editing.git
Plugins will be installed using http
git init
Initialized empty Git repository in
/home/roelofs/proj/vendor/plugins/in_place_editing/.git/
git pull --depth 1 git://github.com/rails/in_place_editing.git
Unpacking objects: 100% (18/18), done.
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 18 (delta 4), reused 17 (delta 4)
From git://github.com/rails/in_place_editing
* branch HEAD -> FETCH_HEAD
removing: .git

Jason

Two things are troubling me:

1) I haven't installed any git client software on my Ubuntu machine.
That said, I read that script/plugin handles the fetching of code from
the git repository and therefore I assume it is not necessary to
install any git client software.

2) I have upgraded from Rails 1.2.6 to 2.2.2 (and made the necessary
changes to my application) but I am concerned that the script/plugin
code is the same that was generated when I first generated my
application using Rails 1.2.6, and thus may not support git (as I
assume in (1)).

Oh...

Two things are troubling me:

1) I haven't installed any git client software on my Ubuntu machine.
That said, I read that script/plugin handles the fetching of code from
the git repository and therefore I assume it is not necessary to
install any git client software.

Um, you do need git installed.

Jason

Um, you do need git installed.

Jason

Hi, like I said in another similar thread, you can simply download the
tarball or zipfile and extract the archive in your plugins folder, and
the plugin is installed. Installing git is however preferable and easier
for future updates.

This isn't true 100% of the time. Quite a few plugins rely on the
installation phase of script/plugin install to push config files / js
/ css / etc files up into the main Rails workspace. Just untarring
into your vendor/plugins does not run this installation process.

Thus, use script/plugin install. Make sure you have the binaries
installed for whatever SCM you use (SVN / git / etc).

Jason

How do I install the git on a mac ?
I installed the gitgem as shown in the git guide, but I still failed
in installing plugins from git

I use a remote subversion repository to manage my application code,
and access it through my IDE or the command line using svn client
programs.

I assume though that I need to install git client programs (git-core?)
in order for script/plugin to be able to retrieve the in_place_editing
plugin from the Rails github repository. Correct?

Having retrieved it, I would then add it to my svn repository as I
would any file that I create.

Thanks...

Check http://git-scm.com and see if you can find out more there.

My 2 cents: the bad news is you need to understand what git does, not
just use it. The good news is: here are some resources I wrote about
that while learning git for rails:
http://harryseldon.thinkosphere.com/2009/01/14/git-and-rails-a-detailed-tutorial-including-plugins-submodules-development-and-production

http://harryseldon.thinkosphere.com/2008/11/08/grand-gardening-with-git

Success!

I have successfully installed auto_complete and in_place_editing from
github.

It was first necessary for me to install the git-core package on my
Ubuntu Hardy Heron machine (sudo apt-get install git-core).

Thanks...

I am having the same issue but on mac (leopard and rails 2.2), I
installed git but still I have no success installing plugin from the
git site. Any suggestions?

Thanks..

My experience was even worse. That worse that I started to dislike git
a lot. RoR is about keeping things simple and clear: now we have and
http, and svn, AND git for installing plugins, and some of it works
sometimes, but not always, and you need to install something else
first, etc. NOT a good evolution, if this goes on. The best way to
make a programming language less populair is make it cluttered,
complicated, illogical and unstable. Git is starting to do all that
for me. Hope it changes for the better. :frowning:

And the problem is? I mean, script/plugin install git... works exactly
as expected, if you have git installed and it works like it should.

Please state what problem you're having instead of just blatantly
bashing something that works for 99% of the people who try to use it.

Jason

You can get an OSX dmg for Git here:

http://code.google.com/p/git-osx-installer/downloads/list?can=3

or if you have macports:

$ sudo port install git-core

DZ