Changed after_action to after_filter so it works in rails 3