Top "Before-filter" questions

How can I dynamically set a parameter in Symfony2?

I'm trying to dynamically set a parameter in Symfony2 (that I cannot statically set in my parameters.yml file). My …

symfony service kernel listener before-filter
How to skip a before_filter for Devise's SessionsController?

I have a before_filter in my ApplicationController; that is, for every controller in my project. How can I skip_…

ruby-on-rails devise before-filter
before_filter with devise

I'm using Devise's built in before_filter :authenticate_user!. I want to call my own custom method in my application …

ruby-on-rails ruby-on-rails-3 devise before-filter
Rails set layout from within a before_filter method

Is it possible to reset a default layout from within a before_filter method in Rails 3? I have the following …

ruby-on-rails layout before-filter
:except not working in before_filter in application controller. Routing problem?

I have a before_filter in my application controller to keep a user's session alive (and log them out if …

ruby-on-rails routing before-filter
How to apply before_filter to every action of every controller in Rails 3.2.11?

I'd like to verify if the user is logged in on every single request to the server. Something like: :before_…

ruby ruby-on-rails-3 authentication redirect before-filter
Problems with :before and :after in Internet Explorer 10

This basically adds two lines before and after the h1 element, like this: The line is just a background color …

css internet-explorer pseudo-element before-filter
Rails use not condition with before_filter

I'm using before_filter in my application. I have a method logged_in? which returns true if the user is …

ruby-on-rails-3 before-filter
Laravel custom auth filter

I've added the standard auth filter to several routes using Route::Intended('/') in the controller (assuming login is …

php laravel-4 before-filter
Ruby on Rails, before_filter and prepend_before_filter ordering is?

In the following example, before_filter :foo before_filter :bar before_filter :wah prepend_before_filter :heehee prepend_before_filter :…

ruby-on-rails filter before-filter