Skip to content

An administrator interface for the rails_exception_handler gem

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE
Notifications You must be signed in to change notification settings

mgwidmann/rails_exception_handler_admin

Repository files navigation

rails_exception_handler_admin

An administrator interface for the rails_exception_handler gem.

Installation

Set up and install rails_exception_handler in this or another application. Add the line below to your gemfile and run bundler

gem 'rails_exception_handler_admin'

Mount the rails engine in your application:

mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'

To add authentication to this route:

# Be sure to customize the lambda to your needs
scope constraints: lambda{|req| User.find(session[:current_user_id]).admin? rescue false } do
  mount RailsExceptionHandlerAdmin::Engine, :at => '/errors'
end

Users who attempt to visit the mounted URL without proper authorization will receive a 404 response.

Notes

Pagination is supported by either WillPaginate or Kaminari but not a dependency of this gem. If you want pagination on the error records, just include either gem in your gemfile.

About

An administrator interface for the rails_exception_handler gem

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •