Skip to content

Commit

Permalink
ActionDispatch::Static requires the path as the second argument
Browse files Browse the repository at this point in the history
  • Loading branch information
jnicklas committed Jul 3, 2010
1 parent c98a644 commit 51bd2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/rails.rb
Expand Up @@ -4,7 +4,7 @@
Capybara.app = Rack::Builder.new do
map "/" do
if Rails.version.to_f >= 3.0
use ActionDispatch::Static
use ActionDispatch::Static, Rails.public_path
run Rails.application
else # Rails 2
use Rails::Rack::Static
Expand Down

0 comments on commit 51bd2fa

Please sign in to comment.