instance method
mount_rails
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
mount_rails(prefix)
No documentation comment.
Parameters
-
prefixreq
Source
# File railties/lib/rails/mongrel_server/commands.rb, line 40
def mount_rails(prefix)
ENV['RAILS_ENV'] = defaults[:environment]
::RAILS_ENV.replace(defaults[:environment]) if defined?(::RAILS_ENV)
env_location = "#{defaults[:cwd]}/config/environment"
require env_location
ActionController::Base.relative_url_root = defaults[:prefix]
uri prefix, :handler => Rails::MongrelServer::RailsHandler.new
end
Defined in railties/lib/rails/mongrel_server/commands.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::MongrelServer::RailsConfigurator