I am generating json using rabl. It is a bit disturbing and probably not the right way to set for json rending that it has no layout.. It naturally does not have and definitely not a HTML based one.
How can I make rails not adding layout for a json rendering? Or more generally, how to set a global strategy for layouting MIME types?
I haven’t checked that but I think it will work: