开发者

How add hash parameter to url using redirect_to?

How add hash parameter to url using redir开发者_开发百科ect_to?

For example:

http://localhost/products/#{page:2}


Best way to do it will be.

 redirect_to :action => :index, :anchor => "order"


use something like

redirect_to url_for(:action=>:index)+"#order"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜