How to add an anchor to the URL with redirect_to, url_for and link_to
Ruby posted 12 months ago by christian
1 # Redirecting and scrolling down to the newly created comment 2 redirect_to(post_path(@comment.post, :anchor => dom_id(@comment)))