laneaasen/thingsmith — pull request #1 by hstove (2012-11-05 02:55:00+00:00)
Title: updated to work with new dailycred middleware

Hey thingsmith!

The way we found that bug today was because we fire a custom event to Dailycred on all of our 404 and 500 pages. We used to do it by [creating a custom event](https://www.dailycred.com/docs/userapi#widget_events), but we thought it should be a first-class feature for everyone, so we made it a part of the standard [javascript tracking tag](https://www.dailycred.com/admin/settings/tagging).

I thought this should be built into the dailycred gem, so I added that today. You need to implement a custom error handler in your application_controller for it to work with the middleware correctly, however, and thats what I've added in this pull request. Also, you had unnecessary code in `config/inititializers/omniauth.rb`, so I removed that.

So in the future, whenever your user hits a 404 or 500 error, we will fire a custom event that you can look for in your [dashboard](https://www.dailycred.com/admin/dashboard#events) (under 'Server Error' or 'Page Not Found'). Then you can diagnose their bugs too!

PS I think what you are building is super cool. I love these kinds of micro-employment services.

Hank