开发者

How add hash parameter to url using redirect_to?

开发者 https://www.devze.com 2023-01-20 06:26 出处:网络
How add hash parameter to url using redir开发者_开发百科ect_to? For example: http://localhost/products/#{page:2}Best way to do it will be.

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

精彩评论

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