Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An exception logger for Rails 2.3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 generators
Octocat-spinner-32 lib
Octocat-spinner-32 rails
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 Manifest
Octocat-spinner-32 README.textile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 watchtower.gemspec
README.textile

Watchtower

Setup

Install the plugin:

script/plugin install git://github.com/joshuaclayton/watchtower.git

Move the assets (requires rsync):

cd vendor && rake watchtower:sync

Set up ApplicationController

class ApplicationController < ActionController::Base include Watchtower::ApplicationControllerBase force_public_request_handling! # use this to force local development to rescue actions like a production server
  1. etc…
    end

If you want to secure the data, you might want to set up an initializer:

WatchtowerController.class_eval do before_filter :check_credentials private def check_credentials
  1. call login_required (from your auth system or whatever) unless viewing a specific exception by key
    login_required unless find_by_key?
    end
    end

Copyright © 2009 Josh Clayton, released under the MIT license

Something went wrong with that request. Please try again.