Rails 3中的类似Stack Overflow的URL路由 [英] Stack Overflow-like URL routes in rails 3
本文介绍了Rails 3中的类似Stack Overflow的URL路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我希望我的应用程序生成诸如堆栈溢出之类的路由
So I want my app to generate routes like stack overflow
questions/:id/:title
如何在Rails中做到这一点?
How can I do this in rails?
推荐答案
这就是我想要的:
http://norman.github.com/friendly_id/file.Guide.html
希望这可以帮助其他人!
hope this can help others!
这篇关于Rails 3中的类似Stack Overflow的URL路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文