1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Serve static assets in Rails

This commit is contained in:
Theo Hultberg and Jonas Nicklas 2009-11-16 20:13:32 +01:00 committed by Jonas Nicklas
parent d22b75ead0
commit 6e55c86a13

View file

@ -1,5 +1,11 @@
require 'webcat'
require 'webcat/dsl'
Webcat.app = ActionController::Dispatcher.new
Webcat.asset_root = Rails.root.join('public')
Webcat.app = Rack::Builder.new do
map "/" do
use Rails::Rack::Static
run ActionController::Dispatcher.new
end
end.to_app
Webcat.asset_root = Rails.root.join('public')