-1

While using Kaminari gem in rails, I got to add an anchor value inorder to load the tabs correctly. But rails encoding the "#" symbol, which preventing the page from rendering correctly. Is there any chance to prevent this from happening.

sample code: <%= paginate products, params: {anchor: 'tab1'} %>

Thanks in advance.

lokusking
  • 7,396
  • 13
  • 38
  • 57

1 Answers1

0

URL helpers accept ahchor parameter.

link_to "Comment wall", profile_path(@profile, anchor: "wall")

Marat
  • 1
  • 3