阅读背景:

在Rails 4中没有继承ApplicationController时,如何包含respond_to ?

来源:互联网 

I have an API controller in a Rails 4.1.2 app that does not inherit from Application controller. I'm trying to include the respond_to method and get a method undefined error....So then I required actionpack at the top like below:I have an API controller in a Rails 4.1.2 app t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: