gazay/gon — Issue #20: Default RABL/Jbuilder template path
Author: ryanb
Created: 2012-02-14 08:54:53+00:00
State: open

It would be nice if the rabl/jbuilder template could automatically use the same template as the controller action. This seems like a good behavior to preload some records into JavaScript which can then later be fetched by the same action.

```
def index
@products = Product.all
gon.rabl as: "products"
# would load "index.json.rabl"
end
```