Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Adds :index to Rack::Static to define a default root file #285

Merged
merged 1 commit into from Dec 18, 2011

Conversation

Projects
None yet
3 participants
Contributor

elcuervo commented Dec 14, 2011

I've found some workarounds to have this feature by using Rack::Static and Rack::Directory but perhaps this is more useful.
Provides an easy way to serve a folder and set a default file to be rendered.

raggi added a commit that referenced this pull request Dec 18, 2011

Merge pull request #285 from elcuervo/rack_static_with_index
Adds :index to Rack::Static to define a default root file

@raggi raggi merged commit 39582c2 into rack:master Dec 18, 2011

bug: this should default to nil, not to "index.html", otherwise apps can't ever choose to serve "/" dynamically -- see issues #301 and #302

Contributor

elcuervo replied Jan 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment