I must be doing something wrong here. I want to a function to run after the controller has run. This function populates some part of my session variable and then i use that information in the next request. Here is the code.
class SummariesController < ApplicationController
after_filter :foo, :only=>[:bar]
def foo
session[:x] = y
end
def bar
#some code
end
end
In this code foo
gets called before bar
. I want it to be called after bar is rendered. What am i doing wrong?