The hello helper method can take a hash anchoras a parameter and display it as a binding:
<li><%= link_to "Ultra", product_path(anchor: 'ultra') %></li>
From the docs :
link_to can also create links with anchors or query strings:
link_to "Comment wall", profile_path(@profile, anchor: "wall")
source
share