I\'m using JBuilder as to return some JSON. I have a index.json.jbuilder that generates the data, and I need to render it to a string. However, I\'m not sure ho
index.json.jbuilder
Looking at the source code, it looks like you can do:
json_string = Jbuilder.encode do |json| json.partial! 'path/to/index', @my_object end