Class: Exceptions
- Inherits:
-
Merb::Controller
- Object
- Merb::Controller
- Exceptions
- 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
-
#not_acceptable ⇒ Object
handle NotAcceptable exceptions (406).
-
#not_found ⇒ Object
handle NotFound exceptions (404).
Instance Method Details
#not_acceptable ⇒ Object
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_found ⇒ Object
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 |