我对 Rails 3 上的这个 Restful 身份验证插件感到非常困惑。我尝试使用以下命令安装该插件。它告诉我它已经安装了,然后我尝试使用--force
重新安装这个插件它告诉我找不到该插件
所以如果插件已经安装为什么我会收到错误Could not find generator authenticated
当我尝试运行命令时rails g authenticated user sessions --include-activation
有任何想法吗?
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:这是运行后的输出gem list
摘要 (1.0.0)
动作邮件程序(3.0.1、3.0.0)
动作包(3.0.1、3.0.0)
活动模型(3.0.1、3.0.0)
活动记录(3.0.1、3.0.0)
活动资源(3.0.1、3.0.0)
主动支持(3.0.1、3.0.0)
可寻址 (2.2.2)
阿瑞尔 (1.0.1)
bcrypt-ruby (2.1.2)
建造者(2.1.2)
捆绑器 (1.0.3)
设计(1.1.3)
埃鲁比斯 (2.6.6)
法拉第 (0.4.6)
gem_plugin (0.2.3)
git (1.2.5)
国际化 (0.4.2, 0.4.1)
邮件(2.2.9、2.2.7)
哑剧类型 (1.16)
迷你测试(1.6.0)
杂种(1.2.0.pre2 x86-mingw32)
multi_json (0.0.4)
网络 LDAP (0.1.1)
漂亮的生成器(0.4.2,0.4.1)
诺科切 (1.4.3.1 x86-mingw32)
oa-基础 (0.1.5, 0.1.4)
oa 核心(0.1.5、0.1.4)
oa-企业(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)
全方位认证(0.1.5、0.1.4)
多语言 (0.3.1)
pyu-ruby-sasl (0.0.3.2)
机架 (1.2.1)
机架安装 (0.6.13)
机架 openid (1.1.2)
机架测试 (0.5.6)
导轨(3.0.1、3.0.0)
铁轨(3.0.1、3.0.0)
耙子 (0.8.7)
折扣 (1.6.5)
rdoc (2.5.8)
休息客户端 (1.6.1)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
红宝石 (0.1.1)
sqlite3-ruby(1.3.1 x86-mingw32、1.2.5 x86-mingw32)
雷神 (0.14.3)
树顶 (1.4.8)
tzinfo (0.3.23)
典狱长 (0.10.7)
Restful 身份验证在 Rails 3 中不再 100% 有效。它在 Rails 3.x 中存在一些问题。尝试使用 Authlogic 或者事实上“devise”应该被证明是一个很棒的身份验证系统,特别是对于 Rails 3.x。我在我的应用程序中使用 devise,它工作得很好!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)