webrat/spec/integration/merb/app/controllers/exceptions.rb
2008-12-29 02:10:05 -05:00

13 lines
228 B
Ruby

class Exceptions < Merb::Controller
# handle NotFound exceptions (404)
def not_found
render :format => :html
end
# handle NotAcceptable exceptions (406)
def not_acceptable
render :format => :html
end
end