[Lift] Re: fall-through redirect

2009-06-09 Thread David Pollak
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

[Lift] Re: fall-through redirect

2009-06-07 Thread Timothy Perrett
If you look back through the archives I was asking a similiar thing (matching the root) ages ago and we actually ended up adding a isRecursive flag to the rewriting mech - this allows you to tell lift to stop rewriting at the first match and subsequently not get stuck in an impossible loop.

[Lift] Re: fall-through redirect

2009-06-07 Thread David Pollak
Tim, This isn't a rewriting problem, it's a sitemap problem. Maybe I'll have time today to work on it today. Thanks, David On Jun 7, 2009 5:05 AM, Timothy Perrett timo...@getintheloop.eu wrote: If you look back through the archives I was asking a similiar thing (matching the root) ages ago

[Lift] Re: fall-through redirect

2009-06-06 Thread Joe Wass
Tim -- Thanks, yes that was very useful; it's certainly helped me understand working with parameters in urls. For the moment I'm working round the requirement to match at the root of the url but eventually it would be nice to be able to do it. David, any guidance on this would be much

[Lift] Re: fall-through redirect

2009-06-05 Thread David Pollak
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

[Lift] Re: fall-through redirect

2009-06-05 Thread Joe Wass
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

[Lift] Re: fall-through redirect

2009-06-05 Thread Timothy Perrett
Joe, You might enjoy my article on URL rewriting: http://is.gd/wq4K Does that help? Cheers, Tim On Jun 5, 6:37 pm, 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

[Lift] Re: fall-through redirect

2009-06-05 Thread David Pollak
Joe, 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.