ccocchi / rabl-rails

Rails 4.2+ templating system with JSON, XML and Plist support.
MIT License
209 stars 51 forks source link

render :format=>:json throws an error #23

Closed paos closed 11 years ago

paos commented 11 years ago

Documentation states you can call this:

Rabl.render(object, template, :view_path => 'app/views', :format => :json)

However, it does not work. If :json is replaced with a string instead, it works

Rabl.render(object, template, :view_path => 'app/views', :format => 'json')
ccocchi commented 11 years ago

It has been fixed and will work in next version of the gem (that will be released by the end on the week)