The browser is the one actually adding the controller name - it sees a bare, slash-less reference as relative to the current URL's directory (the controller). The initial slash makes it an absolute path, avoiding that problem.
--Matt Jones On May 15, 3:53 pm, Dan Sadaka <[email protected]> wrote: > Matt Jones wrote: > > Not to be critical, but you must have the world's weakest contract > > with this designer... at the very least, they should be willing to > > change the links to absolute paths ("/pagename.html") so that the > > banner's not *completely* broken. > > > And a Flash nav banner? What is this, 1999? :) > > > On a more technical note, I've also run into the problem with legacy > > links like this. Another option would be to use mod_rewrite (or > > equivalent if you're not on Apache) to rewrite the links into the > > correct format. > > > --Matt Jones > > > On May 13, 8:09 pm, Dan Sadaka <[email protected]> > > You're saying as the pages are prefixed with a forward slash, rails > won't try to preprend the controller name? That should work. > > Actually, flash nav banners are all the rage again. Hard to find a > decent site without one--and for good reason. What else comes close in > terms of eye-catching quality? > > Thanks, > Dan > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

