Sha256: 9d2b295cd3181708ce72d0a12a969791a2d2c6d63a90081b70604b68bf40a966
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
# You usually wants to inherit from ActionController::Base # because you don't want authentication settings and other # before filters to propagate. Bear in mind that you should # *NOT* do anything special in this controller since any # error here will return a failsafe response to the client. class ExceptionsController < ActionController::Base respond_to :html, :xml, :json include Exceptron::Helpers # TODO respond_with won't work for other HTTP verbs. # We always want to render the resource. def not_found respond_with exception end def internal_server_error respond_with exception end def _prefixes %(app_exceptions) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exceptron-0.0.2 | test/dummy/app/controllers/exceptions_controller.rb |