[Lift] Re: Best practice for creating a view-less, lightweight controller/dispatcher

2009-07-20 Thread Timothy Perrett
Change your dispatcher to be: LiftRules.dispatch.prepend { case r @ Req(u :: id :: Nil, , GetRequest) = () = { // lookup in your database here... Full(RedirectResponse(fullyQualifiedUrl)) } } I can then pass the id parameter to your database query then do a

[Lift] Re: Best practice for creating a view-less, lightweight controller/dispatcher

2009-07-20 Thread Juan M Uys
Thanks, Timothy, it works now! Your suggestion incorporated here: http://github.com/opyate/yauser/commit/eb7af882ea8bdcfc3e621e3b0b8e77ad72b8ef58 Yauser v 0.1-SNAPSHOT is now a fully functional URL shortener, but check the roadmap for future features. Thanks guys, Juan 2009/7/20 Timothy