Joe, See the enclosed code. The menu last menu item (see Boot.scala) is a "fall through" menu item that will intercept any request.
The code is not as concise as Rails, but it's a corner case. Hope this helps. Thanks, David On Fri, Jun 5, 2009 at 10:37 AM, Joe Wass <j...@folktunefinder.com> wrote: > > I'm after re-writing, not a re-direct (although I'd compromise to a > redirect if re-writing isn't possible). > > In Rails I seem to recall it wasn't re-writing but binding after all > other attempts to bind had failed. For comparison, here's the Rails > version: > > [rails routes.rb] > # normal mappings etc > map.connect '/search', :controller => 'view', :action => 'search' > > ... > > # fallback find member after everything else has failed > map.connect "/:tag", :controller => "view", :action => "member" > [/rails] > > which would bind the portion after the slash to 'tag' > > Sorry to drag another framework into it, but I think it's the best way > to explain. > > Joe > > > > On Jun 5, 3:13 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote: > > Joe, > > Do you want a redirect (HTTP 304) or do you want the URL rewritten so > that > > Lift sees site.com/user/member, but the browser still thinks in sent > > site.com/member ? > > > > Thanks, > > > > David > > > > > > > > On Fri, Jun 5, 2009 at 1:47 AM, Joe Wass <j...@folktunefinder.com> > wrote: > > > > > Hello everyone, > > > > > I want to be able to handle requests that don't fall within the > > > sitemap. I have a site with members, and, providing that a user id > > > doesn't conflict with any part of a sitemap path, I want site.com/ > > > member to redirect to site.com/user/member. I've done this kind with > > > Rails, but the Lift model doesn't quite seem to match Rails so I'm a > > > little unsure about how to go about doing it... suggestions? > > > > > TIA! > > > > > Joe > > > > -- > > Lift, the simply functional web frameworkhttp://liftweb.net > > Beginning Scalahttp://www.apress.com/book/view/1430219890 > > Follow me:http://twitter.com/dpp > > Git some:http://github.com/dpp > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
menu.tgz
Description: GNU Zip compressed data