【问题标题】:Rails: restful authentication setup helpRails:restful 身份验证设置帮助
【发布时间】:2011-01-10 06:30:17
【问题描述】:

您好,我从http://github.com/techweenie/restful-authentication.git下载了插件

然后我运行 rails generate plugin authenticated user session

这是我得到的结果:

   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/tasks/auth.rake 中的 rake 任务已被弃用。请改用 lib/tasks。

我是 Rails 新手,尝试在网上查找,但似乎已经过时了。请帮忙!

【问题讨论】:

    标签: ruby-on-rails


    【解决方案1】:

    restful-authentication 插件已经很老了,我认为not working with Rails 3.

    根据链接的问题,最好使用DeviseOmniauth 之类的东西。

    ~克里斯

    【讨论】:

      猜你喜欢
      • 2023-03-11
      • 1970-01-01
      • 1970-01-01
      • 2010-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多