How to add an anchor to the URL with redirect_to, url_for and link_to
# Redirecting and scrolling down to the newly created comment
redirect_to(post_path(@comment.post, :anchor => dom_id(@comment)))
# Redirecting and scrolling down to the newly created comment
redirect_to(post_path(@comment.post, :anchor => dom_id(@comment)))