问题描述
I have configured authlogic gem for user management needs by referring https://github.com/jonathandean/authlogic_example. I have configured everything correctly. I am using Rails 3.2.9 and ruby 1.8.7. I am getting the following error when I took localhost:3000
Routing Error
undefined method `filter_parameter_logging' for ApplicationController:Class
Try running rake routes for more information on available routes.
请帮忙解决这个问题.感谢您的帮助:)-
Please help to resolve this. Thanks for any help :)-
推荐答案
我解决了问题.
答案是,在 Rails 3 中,ActionController
中的 filter_parameter_logging
已弃用且无效,因此删除该行并设置 'config.filter_parameters'
在 config/application.rb
中,就像这样:
The answer is, in Rails 3, filter_parameter_logging
in ActionController
is deprecated and has no effect, so remove that line and set ‘config.filter_parameters’
in config/application.rb
instead, like this:
config.filter_parameters += [:password, :password_confirmation]
问题已解决.
这篇关于将 Authlogic 与 Rails 3.2.9 一起使用时出现路由错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!