Newbie: Can't install plugins

Hi,

I am totally new to Rails and am working in Windows (7 days from
installing and haven't programmed for 20 years prior to that!).

I've been learning from various books, and have been trying to install
plugins for the first time.

I understand that many of them have now moved to Github, so the code in
the books I'm reading often doesn't work.

I think I have Git installed, but am not sure whether I need to do some
further configuration or what "in the path means". If I type "git
--version" in one of my project directories, it says "git version
1.7.0.2.msysgit.0".

I tried: "rails script/plugin install
git://github.com/ambethia/recaptcha.git" and got the response: "exists";
"create app/controllers"; "file exists - script/plugin".

BUT my plugins directory in vendors remains empty.

What am I doing wrong?! Am I looking in the right place for the plugin?
What do I need to do to get my first plugin to work?

Thanks,

Jonathan.

I think I have Git installed, but am not sure whether I need to do some
further configuration or what "in the path means". If I type "git
--version" in one of my project directories, it says "git version
1.7.0.2.msysgit.0".

that looks fine

I tried: "rails script/plugin install
git://github.com/ambethia/recaptcha.git" and got the response: "exists";
"create app/controllers"; "file exists - script/plugin".

That should be ruby script/plugin ... (what you wrote is would try to
create a new rails app at the location indicated by the arguments you
passed)

Fred

Thanks Fred; I can see your suggestion should be right from the example
shown when I type "ruby script/plugin".

However, when I try: "ruby script/plugin install
git://github.com/ambethia/recaptcha.git", I then get a message back that
says: "Plugin not found: [git://github.com/ambethia/recaptcha.git]"

I have tried substituting "http" for "git" as suggested in some forums.

So... any ideas why the seemingly correct syntax doesn't seem to be
working?

Thanks,

Jonathan.

Frederick Cheung wrote:

Thanks Fred; I can see your suggestion should be right from the example
shown when I type "ruby script/plugin".

However, when I try: "ruby script/plugin install
git://github.com/ambethia/recaptcha.git", I then get a message back that
says: "Plugin not found: [git://github.com/ambethia/recaptcha.git]"

I have tried substituting "http" for "git" as suggested in some forums.

So... any ideas why the seemingly correct syntax doesn't seem to be
working?

First off double check that you can clone that repository yourself (ie
git clone git://github.com/ambethia/recaptcha.git )
If that works, then i'd also try running git in the way that rails
with: in a irb session run system("git --version")

Fred

Yes - I can clone the repositary myself with the command below.

If I open the Interactive Ruby shell (by typing "irb" in the cmd
window)and then at the "irb (main):001: 0>" prompt type "git --version",
it says "nameerror: undefined local variable or method...".

Is this what you meant me to do or was it something else?

Big thanks (I am finding this hugely helpful),

Jonathan.

Frederick Cheung wrote:

Yes - I can clone the repositary myself with the command below.

If I open the Interactive Ruby shell (by typing "irb" in the cmd
window)and then at the "irb (main):001: 0>" prompt type "git --version",
it says "nameerror: undefined local variable or method...".

Is this what you meant me to do or was it something else?

no - I meant type

system("git --version")

Fred

Fred - thanks for your patience with me!

The response is "git version 1.7.0.2.... ". So, I guess that looks ok?

Where do I go from here? (Aside from abondoning Windows!)

BTW... have just googled you. Are you the Frederick Cheung of texperts/
Cambridge UK?

Thanks,

Jonathan.

Frederick Cheung wrote:

Fred - thanks for your patience with me!

The response is "git version 1.7.0.2.... ". So, I guess that looks ok?

Where do I go from here? (Aside from abondoning Windows!)

I'd probably examine the rails source code and try to find out exactly
where it is failing. Alternatively you should know that all installing
a plugin does is copy it to vendor/plugins and run its setup.rb if it
has one.

BTW... have just googled you. Are you the Frederick Cheung of texperts/
Cambridge UK?

That's me

Fred

There's is dirty workaround for this problem -
http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/20cb12085cb7991e
- last post by Ahmed Mohamed.

Just tried that and it worked.