■
class WelcomeController < ApplicationController before_filter :redirect_to_foo, :redirect_to_bar, :only => :buzz # before_filter :redirect_to_bar, :redirect_to_foo, :only => :buzz def index end def foo render :text => session[:value] end def bar render :text => session[:value] end def buzz end protected def redirect_to_bar session[:value] = "bar" redirect_to :action => :bar end def redirect_to_foo session[:value] = "foo" redirect_to :action => :foo end end