You could try something like:
<%= link_to "Home", provider_path(current_user.id), :method=> "GET"%>
<%= link_to "Edit Profile", edit_student_path(current_user.id) %>
<%= link_to "Search", provider_search_path %>
...and just check which controller you're coming from.