开发者

Plugins not getting properly installed

开发者 https://www.devze.com 2022-12-09 19:56 出处:网络
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 l

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_pagin开发者_如何转开发ate.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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消