博客 找到与“before_filter”相关的博文共1篇
按相关性排序  按时间排序
[RoR] Ruby for Rails 最佳实践Ⅹ...   2009-08-28 00:46:00
我们还希望过滤器能在顾客没有登录的情况下拦截请求动作(CustomerController.rb)before_filter:authorize,:except=def authorizereturn true if@creport_error("Unauthorized access;password required")end其中 report_error 是一个自制的、通过错误报告方法,...
相关搜索