Displaying 1 result from an estimated 1 matches for "load_mime_map".
2006 May 18
1
mime yaml
...and my XML files were served
with default mime.
A bit of digging I found trunk/bin/mongrel_rails (line 87) containing
lines to parse the YAML file:
mime = {}
if defaults[:mime_map]
log "Loading additional MIME types from #{defaults[:mime_map]}"
mime = load_mime_map(defaults[:mime_map], mime)
end
The only thing is... the variable "mime" wasn''t used anywhere. Further
down at line 99 is:
uri "/", :handler => rails
The custom mime will only be picked up if I change that line to:
uri "/", :handler...