Use Rails link_to_unless_current for navigation links
We’re all familiar with the classic Rails link_to helper. But did you know there is a link_to_unless_current variant?It works just link link_to except that it doesn’t create a link if the browsers current URL is the same as the link target.
Use Rails link_to_unless_current for navigation links #ruby #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper