gazay/gon — Issue #17: TypeError in gon.jbuilder for templates that have partials
Author: logankoester
Created: 2011-12-07 22:27:12+00:00
State: open

When a jbuilder template that includes a partial (another jbuilder template) is rendered through gon.jbuilder, a TypeError exception is raised. jbuilder renders my partial-using template correctly for normal JSON requests. Gon renders my template correctly when the partial code is moved inline.

### TypeError in MyController#some_action

gon (2.0.4) lib/gon/jbuilder.rb:12:in `eval'
jbuilder (0.3) lib/jbuilder.rb:84:in `each'
jbuilder (0.3) lib/jbuilder.rb:84:in `extract!'
jbuilder (0.3) lib/jbuilder.rb:95:in `call'