in Rails, you should rarely ever use and actual <a> tag.  Use link_to, and use the route name instead of the actual url (check it using rake routes).