How exactly do I install the restful authentication plugin in rails 3?

I am very confused by this calm authentication plugin on rails 3. I tried to install the plugin using the following command. He tells me that it is already installed, then I tried to use --forceto reinstall this plugin, it tells me that the plugin was not found

So, if the plugin is already installed, why do I get an error Could not find generator authenticatedwhen I try to run the commandrails g authenticated user sessions --include-activation

any ideas?

C:\Users\Jonathan\Documents\blog>rails plugin install http://github.com
/technoweenie/restful-authentication.git restful_authentication
already installed: restful-authentication (http://github.com/technoweenie/restfu
l-authentication.git).  pass --force to reinstall
already installed: restful_authentication (restful_authentication).  pass --forc
e to reinstall

C:\Users\Jonathan\Documents\blog>rails plugin install http://github.com
/technoweenie/restful-authentication.git restful_authentication --force
Plugin not found: ["http://github.com/technoweenie/restful-authentication.git",
"restful_authentication"]

C:\Users\Jonathan\Documents\blog>rails g authenticated user sessions --
include-activation
Could not find generator authenticated.

Update: Here is the result after launchgem list

abstract (1.0.0) actionmailer (3.0.1, 3.0.0) actionpack (3.0.1, 3.0.0) activemodel (3.0.1, 3.0.0) activerecord (3.0.1, 3.0.0) activeresource (3.0.1, 3.0.0) activesupport (3.0.1, 3.0.0) (2.2.2) isl (1.0.1) bcrypt-ruby (2.1.2) (2.1.2) (1.0.3) (1.1.3) erubis (2.6.6) faraday (0.4.6) gem_plugin (0.2.3) git (1.2.5) i18n (0,4,2, 0,4,1) mail (2.2.9, 2.2.7) mime- (1.16) minitest (1.6.0) mongrel (1.2.0.pre2 x86-mingw32) multi_json (0.0.4) net-ldap (0.1.1) (0,4,2, 0,4,1) nokogiri (1.4.3.1 x86-mingw32) oa-basic (0,1,5, 0,1,4) oa-core (0,1,5, 0,1,4) oa-enterprise (0.1.5, 0.1.4) oa-oauth (0,1,5, 0,1,4) oa-openid (0,1,5, 0,1,4) oauth (0,4,3) oauth2 (0,0.13) omniauth (0,1,5, 0,1,4) (0.3.1) pyu-ruby-sasl (0.0.3.2) (1.2.1) (0.6.13) rack-openid (1.1.2) (0.5.6) (3.0.1, 3.0.0) railties (3.0.1, 3.0.0) (0.8.7) rdiscount (1.6.5) rdoc (2.5.8) rest-client (1.6.1) ruby-openid (2.1.8) ruby-openid-apps-discovery (1.2.0) rubyntlm (0.1.1) sqlite3-ruby (1.3.1 x86-mingw32, 1.2.5 x86-mingw32) thor (0,14.3) (1.4.8) tzinfo (0.3.23) (0.10.7)

+3
2

100% 3. , rails 3.x. Authlogic "devise" , Rails 3.x.I , !!!

+3

gem "rails3-restful-authentication", "~ > 3.0.1" rails 3. , 3

0

Source: https://habr.com/ru/post/1771826/


All Articles