阅读背景:

Rails:向资源添加自定义操作。

来源:互联网 

I have a stories controller that i have mapped as a resource. I've added 2 new methods to stories_controller, 'top' and 'latest'. but when i try to go to example.com/stories/top I get a 'no story with ID=top' error. How can I change the routing to recognize these urls?I have a stories controller that i have mapped




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

分享到: