【问题标题】:restful-authentication 'Could not find generator authenticated'restful-authentication '找不到经过身份验证的生成器'
【发布时间】:2010-07-14 03:19:33
【问题描述】:

我刚刚在 Rails 3 上安装了 restful-authentication 插件,使用: rails 插件安装 git://github.com/technoweenie/restful-authentication.git

要生成身份验证文件,教程说明我应该执行:

ruby 脚本/生成经过身份验证的用户会话 --include-activation

(在 rails3 中是):

rails g 认证用户会话 --include-activation

但是,当我执行此行时,我收到以下错误: “找不到经过身份验证的生成器。”

..有人对如何克服这个问题有任何指示吗?我可能还搞砸了我指定的“rails g”命令。

谢谢。

【问题讨论】:

    标签: ruby-on-rails-3 restful-authentication


    【解决方案1】:

    没关系。在论坛上找到了解决方案。尝试使用http://github.com/satish/restful-authentication 的 git 存储库,它工作得很好。我认为它是专为 rails 3 设计的原始 restful-authentication 的 mod。

    【讨论】:

      【解决方案2】:

      您可以使用 rails 3 支持的 gem "rails3-restful-authentication"。

      【讨论】:

        猜你喜欢
        • 2010-10-12
        • 1970-01-01
        • 1970-01-01
        • 2010-11-17
        • 2016-01-17
        • 1970-01-01
        • 2018-01-07
        • 2019-09-25
        • 1970-01-01
        相关资源
        最近更新 更多