0xSina
0xSina

Reputation: 21553

sinatra files in public folder being routed?

I have public folder in root of my project. Placed a couple of images, when I try to access them, it says "Sinatra doesn't know this ditty..."

Isn't default public folder supposed to be called "public"? Or do I have to explicitly set that?

Upvotes: 2

Views: 257

Answers (2)

Sir l33tname
Sir l33tname

Reputation: 4330

The folder name should be "public" and then access it with /image.png when your folder structure is public/image.png

Upvotes: 1

0xSina
0xSina

Reputation: 21553

Need to not include /public in path.

Upvotes: 1

Related Questions