search for: mongrel_rewrite

Displaying 1 result from an estimated 1 matches for "mongrel_rewrite".

2006 Jul 21
1
RedirectHandler? mongrel_rewrite?
...ts/x'', everything explodes. Is there a way around this? I am registering my RedirectHandler using the ''uri'' method in a file passed to mongrel_rails via -S. Before RedirectHandler was included in Mongrel we had worked out a solution: a gem_plugin we joking called mongrel_rewrite. You simply create ''config/rewrites.rb'' in your Rails root. Ours looks like this: RewriteRules = { /\/(.+)\/(\w+)\.\d+\.(js|css|gif|jpg|png)/ => ''/$1/$2.$3'' } If the plugin (gem) is installed, it will rewrite params [Mongrel::Const::PATH_INFO]...