[Mongrel] RedirectHandler

Adam Groves lists at ruby-forum.com
Wed Feb 27 18:58:29 EST 2008


Hi,

I'm a bit stumped as to how to use Mongrel::RedirectHandler

I've got a config script in my rails lib directory call assets.rb

assets.rb contains:

uri "/assets", :handler =>
Mongrel::RedirectHandler.new("/path/to/redirect/to"), :in_front => true

How to I get this to redirect assets/foo.jpg to
/assets/subdirectory/foo.jpg. HOw do I access the request parameters?

Regards

Adam Groves
-- 
Posted via http://www.ruby-forum.com/.


More information about the Mongrel-users mailing list