Maxsy
Maxsy

Reputation: 225

Plugins not getting properly installed

i am having this annoying problem when deploying rails plugins. I can install them by downloading the source and putting it in the vendor/plugins directory, But i want to do it with the easy command line. I am trying to install the will_paginate plugin.

tried this command ruby script/plugin install git://github.com/mislav/will_paginate.git that doesn't work, i tried this one as well ruby script/plugin install http://github.com/mislav/will_paginate.git

the problem i am getting is, There is no error while installing the plugin from command line, but rather there is an empty folder created inside vendor/plugins directory by the name of will_paginate, And the folder is empty. Any solutions for this?

thanks.

Upvotes: 0

Views: 201

Answers (2)

mculp
mculp

Reputation: 2687

It sounds like you don't have git installed. Are you using Windows? If so, you'll have to download and configure a command-line git client.

If you do have git installed and configured correctly, alternatively, from your root rails directory you could try:

git clone git://github.com/mislav/will_paginate.git vendor/plugins/will_paginate

Upvotes: 1

briandoll
briandoll

Reputation: 311

ruby script/plugin install git://github.com/mislav/will_paginate.git

That should work for you. For reference, here is the blog post from github. According to that post, this was supported beginning in Rails 2.0.2, so you'll need to be using at least that version of Rails and have git installed locally.

Upvotes: 0

Related Questions