undefined method respond_to in Rails 5 controller

后端 未结 1 1356
盖世英雄少女心
盖世英雄少女心 2021-01-11 15:02

I\'m upgrading an app from rails 3.something to rails 5. For some reason, I\'m am getting undefindied method respond_to anytime I use that method in any of my controllers.

相关标签:
1条回答
  • 2021-01-11 15:51

    As per Rails 5 release notes,

    Remove respond_to/respond_with placeholder methods, this functionality has been extracted to the responders gem.

    Add responders gem to your Gemfile.

    0 讨论(0)
提交回复
热议问题