Class: Exceptions

Inherits:
Application show all
Defined in:
lib/generators/templates/application/merb/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/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/app/controllers/exceptions.rb', line 4

def not_found
  render :format => :html
end