Block syntax

@nigelramsay here are my suggested changes:

* Refactor syntax to take a block instead of exposing a @result variable.
* Added Minimal Rails Application so that controller testing is possible.
* Added controller test. This shows expected usage.
* Simplified rendering logic.