I am trying to render a partial inside a JSON file so that I can use it via AJAX. Currently in my JSON file I have:
<% self.formats = [\"html\"]%> { \"h
You can't call to_json on a partial... it's a method of ActiveRecord. If you want json there, then it should be inside the partial.
to_json