webrat/spec/integration/merb/app/controllers/exceptions.rb

14 lines
227 B
Ruby
Raw Permalink Normal View History

class Exceptions < Merb::Controller
2009-04-08 00:30:12 +00:00
# handle NotFound exceptions (404)
def not_found
render :format => :html
end
# handle NotAcceptable exceptions (406)
def not_acceptable
render :format => :html
end
2009-04-08 00:30:12 +00:00
end