mongrel_railsとmime type

  1. 雛形になるconfigを作る
hitokuro$ mongrel_rails start -G config/mongrel_opts.conf
** Writing config to config/mongrel_opts.conf
## Exiting. Re-run without -G and WITH -C using your new config file.
  1. configへmimeマッピング情報の追加
:mime_map: config/mongrel_mime.conf
  1. mime_typeのマッピングファイルを作る
hitokuro$ cat config/mongrel_mime.conf 
.js: text/javascript; charset=UTF-8
.json: text/javascript; charset=UTF-8
.htm: text/html; charset=UTF-8
.html: text/html; charset=UTF-8
.css: text/css; charset=UTF-8
.txt: text/plain; charset=UTF-8

参項
http://mongrel.rubyforge.org/docs/howto.html

っていうかコレもしかして railsのenvironmentに入っちゃう?そんな気がしてきた29才