Very simple:
I want to make an <img>
-Tag if the mimetype of my file is an image
case comment.fileType
when "image/png" || "image/gif" || "image/jpeg"
img(src="/files/#{comment.fileLink}")
does not work
It works for png, but not for jpeg or gif. Is there a trick?
I think this will work: