Je suis très confus sur ce plugin d'authentification reposant sur les rails 3. J'ai essayé d'installer le plugin en utilisant la commande suivante. Il me dit qu'il est déjà installé, alors j'ai essayé d'utiliser le --force
pour réinstaller ce plugin, il me dit que le plug-in ne se trouve pascomment exactement installer le plugin d'authentification reposant dans les rails 3?
Donc, si le plugin est déjà installé pourquoi j'obtiens l'erreur Could not find generator authenticated
lorsque je tente d'exécuter la commande rails g authenticated user sessions --include-activation
des idées?
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.
Mise à jour: est ici la sortie après l'exécution gem list
abstraite (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) activeesource (3.0.1, 3.0.0) activeupport (3.0.1, 3.0.0) adressable (2.2.2 arel (1.0.1) bcrypt-ruby (2.1.2) générateur (2.1.2) bundler (1.0.3) legs (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-types (1,16) minitest (1.6.0) bâtarde (1.2.0.pre2 x86-mingw32) multi_json (0.0.4) net-ldap (0.1.1) nifty-générateurs (0.4.2, 0.4.1) nokogiri (1.4.3.1 x86-mingw32) oa-basique (0.1.5, 0.1.4) oa-core (0.1.5, 0.1.4) oa-entreprise (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) polyglot (0.3.1) pyu-ruby-SASL (0.0.3.2) crémaillère (1.2.1) montage en rack (0.6.13) rack Openid (1.1.2) rack test (0,5 0,6) rails (3.0.1, 3.0.0) railties (3.0.1, 3.0.0) râteau (0.8.7) rdiscount (1.6.5) rdoc (2.5.8) repos client (1.6.1) ruby-openid (2.1.8) ruby-openid-apps-découverte (1.2.0) rubyntlm (0.1.1) sqlite3-ruby (1.3.1 x86-mingw32, 1.2.5 x86-mingw32) thor (0.14.3) treetop (1.4.8) tzinfo (0.3.23) de garde (0.10.7)
exécuter cette commande et mettre la sortie nous montrer la sortie.'gem list' – s84
Si vous utilisez des rails 3, vous devriez utiliser bundler car c'est ainsi qu'il gère les gemmes. Je ne devrais pas faire l'installation de gem sauf si ce n'est pas avec un rail comme application – s84
merci @sam J'ai mis à jour mes fichiers de liste gem – Jonathan