No, this is not a real Sinatra error :).
This is the personal homepage of Elad Meidar, a web developer and an entrepreneur specializing in Ruby on Rails. I hang around in Israel, and i am currently having the best time of my life over at Fiverr.com
I am a proud member of RailsBridge, Helping new Rails developers get into our world and also contributed a few Patches to the Ruby on Rails core.
when you use rails’s image_tag, by default it sets the HTML attributes of alt and title to the filename of the image. so for
<br />image_tag 'dscn0001.jpg'<br />
will produce the following html something like that
<br /><img src="images/dscn0001.jpg" alt="dscn0001" /><br />
the alt attribute for image tag is meant to explain the content of the image in case the actual image was not found, or for non-graphic browsers.
The default value for the alt attribute should not be used, unless the file name does not really supply information about the image. my suggestion is to use the :alt option in the image_tag helper.
important: do not attempt to use the alt for keywords heaping (‘elad-rails-blog-ruby.jpg’), this will not help you in your SEO.
You're seeing this error because I think it is funny.