Permalink
Browse files

Set up middleware to serve CSS.

  • Loading branch information...
1 parent 13e8a25 commit 3822e0b42aca4b2305853255494589dba2a475e8 @lstoll committed Jan 31, 2011
Showing with 3 additions and 1 deletion.
  1. +2 −0 config.ru
  2. 0 public/{ → stylesheets}/style.css
  3. +1 −1 views/layout.haml
View
@@ -3,5 +3,7 @@ require 'bundler'
Bundler.require
+use Rack::Static, :urls => ['/stylesheets'], :root => 'public'
+
require './app'
run App
File renamed without changes.
View
@@ -1,6 +1,6 @@
%html
%head
- %link{:rel => 'stylesheet', :media => 'screen', :href => '/style.css'}
+ %link{:rel => 'stylesheet', :media => 'screen', :href => '/stylesheets/style.css'}
%title Is Linc at Polly?
%body{:class => @at_polly.to_s}
%section

0 comments on commit 3822e0b

Please sign in to comment.