Working on a Ruby on Rails project using ERB. I am trying to link a user to their profile page. For example, clicking on the dropdown link and then profile should bring you to site.com/users/1 if you are logged in as User 1.
<a class="dropdown-item" href="users/<%= current_user.id %>">Profile</a
This works on all the pages, however when I move to the profile page, it for some reason changes to site.com/users/users/1 if I click on the Profile link while on the profile thus giving me an error. Any tips?