I usually just use Rack::Static:

module App
  use Rack::Static, :urls => ['/static']
end

This would serve ./static/jquery.js at
localhost:3301/static/jquery.js, though - with the directory included
in URL - but will also serve files from subdirectories recursively (I
don't know if Rack::File does this).

-- Matma Rex
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to