Forum: Ruby on Rails URL generation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ddfb90cf93d097f62708cb022bcad4dc?d=identicon&s=25 John (Guest)
on 2007-04-05 15:35
How do I prepend all url's in my application with a specific string so
instead of generating URL's of the form /:controller/:action/:id I would
get /myString/:controller/:action/:id?

I know I can use routes.rb and url_for() to accomplish a similar task on
an individual controller basis but I don't see a way to easily prepend
all urls with a string.


This topic is locked and can not be replied to.