阅读背景:

Rails路由到XML / JSON没有视图疯了

来源:互联网 

I have a mystifying problem. In a very simple Ruby app i have three classes: Drivers, Jobs and Vehicles. All three classes only consist of Id and Name. All three classes have the same #index and #show methods and only render in JSON or XML (this is in fact true for all their CRUD methods, they are identical in everything but name). There are no views. For example: I have a mystifying problem. In a very simple R




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

分享到: