module ActionController::Rendering

def _process_options(options)

Process controller specific options, as status, content-type and location.
def _process_options(options)
  status, content_type, location = options.values_at(:status, :content_type, :location)
  self.status = status if status
  self.content_type = content_type if content_type
  headers["Location"] = url_for(location) if location
  super
end