阅读背景:

在RoR中,我应该使用模板来呈现JSON或使用控制器返回JSON吗?

来源:互联网 

That's my great doubt.

这是我的重大疑问。

We have a project in RoR and we are making it more dynamic, using Ajax calls. They want that I put literal JSON in html templates and parse it with eval() in javascript, avoiding to putting exception into Controller to return response as JSON directly.We have a




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

分享到: