apotomo icon indicating copy to clipboard operation
apotomo copied to clipboard

render :json

Open atambo opened this issue 14 years ago • 1 comments

When calling render :json => @object in a Apotomo::Widget it looks for a template of format .json instead of calling .to_json on the object and setting the content_type to "application/json" like a regular controller would do.

atambo avatar Nov 14 '11 18:11 atambo

this is actually a cells issue, as Widget#render just calls Cells::Base#render: https://github.com/apotonick/apotomo/blob/master/lib/apotomo/widget.rb#L127

nilclass avatar Nov 15 '11 10:11 nilclass