All pastes #1686742 Raw Edit

Unnamed

public text v1 · immutable
#1686742 ·published 2009-11-25 12:44 UTC
rendered paste body
class FourOhFoursController < ApplicationController
  def index
    FourOhFour.add_request(request.url,
                           request.env['HTTP_REFERER'] || '', request.env['HTTP_USER_AGENT'] || '',
                           request.remote_ip)
    respond_to do |format|
      format.html { render :file => "#{RAILS_ROOT}/public/404.html" ,
                           :status => "404 Not Found" }
      format.all { render :nothing => true,
                           :status => "404 Not Found" }
    end
  end
end