Ruby on rails 如何对Rails 2.3.8中的嵌套资源使用restful_身份验证?

Ruby on rails 如何对Rails 2.3.8中的嵌套资源使用restful_身份验证?,ruby-on-rails,restful-authentication,Ruby On Rails,Restful Authentication,我有一个嵌套的资源hotel\u用户,我希望在hotel命名空间下有hotel\u用户\u控制器 我想在这里使用restful身份验证,我想在酒店目录中使用hotel\u users\u controller、sessions\u controller,比如hotel/hotel\u users\u controller和hotel/sessions\u controller。我在终端中尝试了以下命令,但失败了 script/generate authenticated hotel_user h

我有一个嵌套的资源hotel\u用户,我希望在hotel命名空间下有hotel\u用户\u控制器

我想在这里使用restful身份验证,我想在酒店目录中使用hotel\u users\u controller、sessions\u controller,比如hotel/hotel\u users\u controller和hotel/sessions\u controller。我在终端中尝试了以下命令,但失败了

script/generate authenticated hotel_user hotel/session 
它失败了,出现了错误

 The name 'AuthenticatedSystem' is either already used in your application or reserved by Ruby on Rails.
  Please choose an alternative and run this generator again.

已验证的_system.rb文件存在于lib目录下的某些其他资源中,而不存在于hotel_用户。生成器看到它,文件生成失败。我能做什么?请帮助更改文件名和模块名


重新生成restful_身份验证并使用其他名称更改它。或者你以前的文件。

FWIW,我的Ruby和Rails朋友告诉我,没有人再使用restful身份验证,而是使用更新的插件,如Authlogic、cancan等。谢谢,我将按照评论人对我上述问题的建议使用Authlogic