Added a view example to usage docs

While trying to set up the library with my existing application I ran into some trouble using it in a view. The documentation was not helpful.

Then I found an example [here](http://stackoverflow.com/a/7854260) and thought that it might be helpful in the documentation too.