Routing Error when used Authlogic with Rails 3.2.9

百般思念 提交于 2019-12-25 04:47:10

问题


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 :)-


回答1:


I got the problem resolved.

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]

Problem resolved.



来源:https://stackoverflow.com/questions/16206234/routing-error-when-used-authlogic-with-rails-3-2-9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!