Permalink
Browse files

Lets just start the rack instance in the right directory

  • Loading branch information...
1 parent 0ae8da6 commit df5c4acfc7f63c599f17a178189188a868370d27 @dhh dhh committed Sep 27, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 test/config.ru
  2. +3 −3 test/index.html
  3. +1 −1 test/other.html
View
@@ -11,4 +11,4 @@ map "/js" do
run Assets
end
-run Rack::Directory.new(Root)
+run Rack::Directory.new(File.join(Root, "test"))
View
@@ -12,10 +12,10 @@
</head>
<body class="page-index">
<ul style="margin-top:200px;">
- <li><a href="/test/other.html">Other page</a></li>
- <li><a href="/test/other.html"><span>Wrapped link</span></a></li>
+ <li><a href="/other.html">Other page</a></li>
+ <li><a href="/other.html"><span>Wrapped link</span></a></li>
<li><a href="http://www.google.com/">Cross origin</a></li>
- <li><a href="/test/dummy.gif?12345">Query Param Image Link</a></li>
+ <li><a href="/dummy.gif?12345">Query Param Image Link</a></li>
<li><a href="#">Hash link</a></li>
</ul>
View
@@ -12,7 +12,7 @@
</head>
<body class="page-other">
<ul>
- <li><a href="/test/index.html">Home</a></li>
+ <li><a href="/index.html">Home</a></li>
</ul>
</body>
</html>

0 comments on commit df5c4ac

Please sign in to comment.