I'm pretty sure Merb::Config[:path_prefix] does this. -- Yehuda On Tue, Nov 25, 2008 at 11:46 AM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
> > Both Glassfish V3 (https://glassfish.dev.java.net) and Glassfish Gem > (http://rubyforge.org/projects/glassfishgem/) will do the entire > deployment (including web server and management) for you, at a path of > your choosing. > > On Nov 25, 12:26 am, weepy <[EMAIL PROTECTED]> wrote: > > Hi > > > > One thing that (at least for me) holds back the deployability of Rails/ > > Merb is the requirement to server from the root. > Iehttp://domainname:port/ > > > > It would be very useful to be able to server from any path (without > > funking with Apache rewrites). > > > > The only thing I can think of here is to have some configuration > > option such as: > > > > root_prefix = "/labs" > > > > which would be prepended to all absolute urls that helpers produce and > > the router would chomp off. The only other annoyance would be that all > > path in views would have to be handled by helpers. > > > > Is this feasible? Or maybe there's a better way (relative paths seems > > way off). I could ask this at Rails but you Merb guys are alot more > > accomodating :) > > > > weepy ;...( > > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
