Permalink
Browse files

ActionDispatch::Static requires the path as the second argument

  • Loading branch information...
1 parent c98a644 commit 51bd2fa42be2d8f77b1e4106d31163c63f0b0200 @jnicklas jnicklas committed Jul 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capybara/rails.rb
View
@@ -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

0 comments on commit 51bd2fa

Please sign in to comment.