modeset/apitome — pull request #3 by Draiken (2013-11-25 10:21:43+00:00)
Title: Passing the json example as a local variable to the example template

For some reason when rendering the example partial inside the loop, it doesn't call
the example helper method on the controller, it calls instead a nil local variable
breaking the rendering of the single page template with: `undefined method `[]' for nil:NilClass` inside the `_example` partial.

At first I thought it was the local variable from the loop `example` that was conflicting, but it doesn't really make sense, since the context of the partial rendering is different. Must be some kind of auto generated local variable based on the template name.

Either way, this was the quickest fix I thought of that wouldn't require changing a lot of other stuff :)

Thanks!