When I am viewing the page in my web browser (this is across multiple browsers), my navigation bar is repeating the route path in parentheses next to the alias for the link. (i.e. it shows About(/about)). Here is the code I am using for my navigation bar
<li><%= link_to "About", about_path %></li>
<li><%= link_to "Contact", contact_path %></li>
<li><%= link_to "Help", help_path %></li>
match '/contact', :to => 'pages#contact'
match '/about', :to => 'pages#about'
match '/help', :to => 'pages#help'
root :to => 'pages#home'
I have checked the rails api and this syntax seems correct. The links themselves are working fine. I have restarted the server and this is an issue that persists across multiple browsers. My test suite passes completely. I can’t seem to figure out why this issue is persisting.
edit: This also doesn’t appear anywhere in the page source either, so I have no clue how it is even showing up.
Ok this gets even weirder it seems like this persists for outbound links that are coded in general html. If I try to code
<a href="www.example.com>example</a>
It will look like “example http://www.example.com”. This looks like a more general linking issue.
This issue was due to a bug in the compass gem, see my comment above for full details.