ruby on rails - How to have <% f.submit %> redirect to an anchor tag upon submission -
i trying create search filter google maps app using ransack. filtering woking want redirect #footer map located , not top of page. possible? here have
<%= f.submit "filter results", :onsubmit => root_path(:anchor => 'footer'), :class => "btn btn-success" %>
any thoughts, -john
i not sure understand asking exactly, forgive me if answer doesn't help.
with html, if want point link specific part of page can following:
add name attribute particular spot u want link to, example:
now, link particular section of page, add "#section1" end of link
so if add name attribute footer, , add proper #name end of link, should able have url point footer on page.
hope helps!
Comments
Post a Comment