Class | Mongrel::Rails::RailsHandler |
In: |
lib/mongrel/rails.rb
|
Parent: | Mongrel::HttpHandler |
Implements a handler that can run Rails and serve files out of the Rails application’s public directory. This lets you run your Rails application with Mongrel during development and testing, then use it also in production behind a server that’s better at serving the static files.
The RailsHandler takes a mime_map parameter which is a simple suffix=mimetype mapping that it should add to the list of valid mime types.
It also supports page caching directly and will try to resolve a request in the following order:
This means that if you are using page caching it will actually work with Mongrel and you should see a decent speed boost (but not as fast as if you use lighttpd).
An additional feature you can use is
files | [R] | |
guard | [R] |
Attempts to resolve the request as follows: