Skip to content

Instantly share code, notes, and snippets.

@shanemcd
Created October 19, 2011 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanemcd/1298672 to your computer and use it in GitHub Desktop.
Save shanemcd/1298672 to your computer and use it in GitHub Desktop.
get '/articles/:id' do
@article = Articles.get params[:id]
set :public_folder, File.dirname(__FILE__) + '/css/styles.css'
erb :article
end
@burningTyger
Copy link

get '/articles/:id' do
 @article = Articles.get params[:id]
  erb :article
end

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

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