I\'m upgrading a Rails 4.1.8 app (also using rails-api ~> 0.3.1) to 4.2.0.rc2 and would like to retain the respond_with
functionality. I\'ve added respon
Looks like it was a responders
/rails-api
incompatibility. I tried responders :location
in the ApplicationController
and would get a backtrace with undefined method 'responders' for ApplicationController:Class (NoMethodError)
, leading me to believe that the responders
gem adds the responders
class method to ActionController::Base
. Since rails-api
has your controllers inherit from ActionController::API
, the responders
methods wouldn't, in effect, get added to my ApplicationController
.
Confirmed: responders/lib/responders/controller_method.rb
I tried extend
ing my ApplicationController
with Responders::ControllerMethod
, but that didn't get me around the problem.
My solution, effectively, was to drop using rails-api
, then ApplicationController < ActionController::Base
.