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"
精彩评论