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:
parent
d22b75ead0
commit
6e55c86a13
1 changed files with 8 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue