Use `link_to` with a path helper rather than writing paths manually. `rake routes` will help you here.