Replaced before_filter with before_action in static_controller.rb