Can you tell me if this is a bug in Rabl or I didn't configure my app correctly. So here's a problem. I'm using Devise and I allow users to authenticate using :html and :json. Devise uses respond_with resource, location: xxx where resource is User object.
For JSON responses - I have created create.rabl. However, now for HTML requests - this file is also served. Why Rabl is responding to HTML-format requests?
Can you tell me if this is a bug in Rabl or I didn't configure my app correctly. So here's a problem. I'm using Devise and I allow users to authenticate using
:html
and:json
. Devise usesrespond_with resource, location: xxx
whereresource
isUser
object.For JSON responses - I have created
create.rabl
. However, now for HTML requests - this file is also served. Why Rabl is responding to HTML-format requests?