KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've been trying out Sinatra on my local Windows machine. I want to include some local CSS and JS files. This is how the code looks in layout.erb <script src="jquery.js" type="text/javascript"> </script> <link rel="stylesheet" href="reset.css" type="text/css" /> All my files are in the same folder as app.rb This is my app.rb require 'rubygems' require 'sinatra' get '/' do erb :index end For some reason, I cant see these files included in my pages. When I view the source code and click on the file(JS/CSS) I see that - "Sinatra doesn't know this ditty"- error. What am I doing wrong here?
Tags (comma-separated)
Save Edits
Cancel