Why does Rails 4.2 + responders keeps telling me to add responders to the Gemfile?

前端 未结 5 840
不思量自难忘°
不思量自难忘° 2020-12-19 06:16

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

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 06:27

    The following worked for me using rails-api / active_model_serializers 0.8.3:

    Remove

    include ActionController::MimeResponds
    include ActionController::ImplicitRender
    

    Add

    include ActionController::RespondWith
    

    See this discussion on github.

提交回复
热议问题