首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rails: restful身份验证设置帮助

Rails: restful身份验证设置帮助
EN

Stack Overflow用户
提问于 2011-01-10 14:30:18
回答 1查看 379关注 0票数 1

嗨,我从http://github.com/techweenie/restful-authentication.git下载了这个插件

然后,我运行rails生成插件验证用户会话

这是我得到的结果:

代码语言:javascript
复制
   create  vendor/plugins/authenticated
      create  vendor/plugins/authenticated/MIT-LICENSE
      create  vendor/plugins/authenticated/README
      create  vendor/plugins/authenticated/Rakefile
      create  vendor/plugins/authenticated/init.rb
      create  vendor/plugins/authenticated/install.rb
      create  vendor/plugins/authenticated/uninstall.rb
      create  vendor/plugins/authenticated/lib
      create  vendor/plugins/authenticated/lib/authenticated.rb
      invoke  test_unit
      inside    vendor/plugins/authenticated
      create      test
      create      test/authenticated_test.rb
      create      test/test_helper.rb

然后,我尝试使用rake db:migrate

但我得到的错误是restful-authentication/task/auth.rake中的rake任务是不推荐使用的。请改用lib/task。

我是rails的新手,尝试过在网上寻找,但似乎已经过时了。请帮帮我!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-01-10 15:45:25

restful身份验证插件很旧,我认为是not working with Rails 3.

根据链接的问题,可能使用DeviseOmniauth之类的东西会更好。

~克里斯

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4644252

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档