apotomo
apotomo copied to clipboard
render :json
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.
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