i am working on a little Sinatra/Slim project, and i want to include a css file. All works fine except that.
Here is my project "tree":
link href="style.css" rel='stylesheet' type='text/css'
"GET /style.css HTTP/1.1" 404
undefined method 'file_path'
Sinatra expects your css files files to reside in the
public directory, not within the
views directory by default.
So your project tree should look more like this.
/essai.rb /views /form.slim /public /css /style.css
Then you should be able to access it with your existing slim template.