Use request.format instead of params[:format] This works even in case the format is not explicitly specified (i.e. Backbone.js does not send a format parameter when fetching data)
Use request.format instead of params[:format]
This works even in case the format is not explicitly specified (i.e. Backbone.js does not send a format parameter when fetching data)
lassebunk/api_builder