map.connect ‘images/theme/:filename.:format’, :controller => ‘theme’, :action => ‘images’
work? You might have to play around with that dot and the :format reference but I think that’s how it’s done. I’ve never used it myself though. Someone else with some experience might want to clarify.