问题
I am trying to install restful_authentication plugin use following git...
git://github.com/Satish/restful-authentication.git
and i am trying to install using following command...
c:\Users\Admin\Downloads\rails_apps\students>ruby script/plugin install git://github.com/Satish/restful-authentication.git
But its not installing as expected, please help, thanks.
回答1:
Not exactly an answer, but what version of rails are you using? The restful authentication plugin hasn't been updated in a long while, as you can see on the github project: https://github.com/technoweenie/restful-authentication. Unless you're on Rails 2.3.x, i'd recommend looking at: https://github.com/plataformatec/devise
回答2:
Try to user on terminal:
[sudo] gem install restful-authentication
or
[sudo] rails plugin install git://github.com/Satish/restful-authentication.git restful_authentication
and insert on Gemfile:
[sudo] gem "restful-authentication", "~> 1.2.1"
or
[sudo] gem "restful-authentication"
- if you'r on linux or mac, you can user sudo.
来源:https://stackoverflow.com/questions/12264260/rails-plugin-isnt-installing