Class: Exceptions

Inherits:
Merb::Controller
  • Object
show all
Defined in:
lib/generators/templates/application/merb_core/app/controllers/exceptions.rb,
lib/generators/templates/application/merb_stack/app/controllers/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#not_acceptableObject

handle NotAcceptable exceptions (406)



9
10
11
# File 'lib/generators/templates/application/merb_core/app/controllers/exceptions.rb', line 9

def not_acceptable
  render :format => :html
end

#not_foundObject

handle NotFound exceptions (404)



4
5
6
# File 'lib/generators/templates/application/merb_core/app/controllers/exceptions.rb', line 4

def not_found
  render :format => :html
end