In my before filter, I call a method containing the following code: authorized_for_roles :administrator
I\'m using devise for authentication and have some before_filters in my application controller. Issue I\'m seeing is that when I try to logout the before_filter intercepts that and keeps me on the vie
In application_controller I have th开发者_开发百科e following method: def authorized_for_roles(*roles)
I added the before_filter to my controllers to require a login of the user. Here\'s an example of my Unit Controller with the added before_filter:
before_filter of controller expects user to be logged in. this is why test of controller fails(work fine if i remove user authentication call from before_filter). Is it possible if user authentication
I have a fairly typical require_no_user as a before_filter in one of my controllers. I need to test that a logge开发者_如何学Pythond in user is redirected by this filter if they try to access any of t
I have a before_filter in my application controller to keep a user\'s session alive (and log them out if a time out has开发者_JAVA技巧 been reached). This should be called on every action except /sess
I\'m writing specs for a plugin which has different modules that the user can choose to load. Some of these modules dynamically add before_filters to ApplicationController.
I\'m doing some optimisation on my Rails (2.3.5) app, and can\'t seem to find an elegant way of benchmarking the filter chain. I\'m ab testing the site with something like:
I am trying to create an action th开发者_StackOverflow社区at will check for every page if the user is logged in.