Updated rails app to somewhat conform with a working app

Hey guys,

I've been trying to implement Balanced Payment in with my rails app, and stumbled upon this app. The problem was, it was broken in a few places, there were some best practices, and some general niceties that I wanted to add.

I feel the app will be a lot more useful if Rails users can wrap their head around whats going on.