如何使用redirect_to向url添加哈希参数? [英] How add hash parameter to url using redirect_to?
本文介绍了如何使用redirect_to向url添加哈希参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用redirect_to向url添加hash参数?
How add hash parameter to url using redirect_to?
例如:
http://localhost/products/#{page:2}
推荐答案
使用类似的东西
redirect_to url_for(:action=>:index)+"#order"
这篇关于如何使用redirect_to向url添加哈希参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文