class ApplicationController < ActionController::Base before_filter :find_categories helper :all # protect_from_forgery # See ActionController::RequestForgeryProtection for details private def find_categories @categories = Category.find(:all) end end