Module: Rack
- Defined in:
- lib/rack/adapter/rails.rb,
lib/thin.rb,
lib/rack/handler/thin.rb,
lib/rack/adapter/loader.rb
Overview
Adapter to run a Rails app with any supported Rack handler. By default it will try to load the Rails application in the current directory in the development environment.
Options:
root: Root directory of the Rails app
environment: Rails environment to run in (development [default], production or test)
prefix: Set the relative URL root.
Based on fuzed.rubyforge.org/ Rails adapter
Defined Under Namespace
Modules: Adapter, Handler Classes: AdapterNotFound
Constant Summary collapse
- ADAPTERS =
Hash used to guess which adapter to use in
Adapter.for
. Framework name => file unique to this framework.nil
for value to never guess. { :rails => "config/environment.rb", :ramaze => "start.rb", :merb => "config/init.rb", :halcyon => 'runner.ru', :mack => 'config/app_config/default.yml', :file => nil }