Created
October 19, 2011 15:41
-
-
Save shanemcd/1298672 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get '/articles/:id' do | |
@article = Articles.get params[:id] | |
set :public_folder, File.dirname(__FILE__) + '/css/styles.css' | |
erb :article | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and in your erb file (dont know the syntax)
you call your css file in "/css/styles.css"
And you put your styles.css in
./public/css/styles.css
In this case you don't need to set the public_folder