If you're using named routes and want to add an anchor to your automatically generated URL, there's a very simple way to do it:
products_path(:anchor => 'my_anchor')
It's that simple!
W
Subscribe to:
Post Comments (Atom)
We are two developers on the journey to discovering Ruby on Rails. On the way, we hope to learn lots and track our findings. By the end, we hope to be enlightened.
No comments:
Post a Comment