nesquena / rabl

General ruby templating with json, bson, xml, plist and msgpack support
http://blog.codepath.com/2011/06/27/building-a-platform-api-on-rails/
MIT License
3.64k stars 334 forks source link

RABL, Devise and sessions/create.rabl #702

Open rience opened 7 years ago

rience commented 7 years ago

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?