I thought I''d slap together a favicon for my site. So, I created a
16x16 .pnm using GIMP, and converted it to .ico using ppmtowinicon.
Now, at this point in time, my application (running in dev mode,
apache2.0.51/fastcgi), is running just fine.
If I put this favicon.ico file in my app/public directory, and make it
644, I get this error:
TypeError (wrong argument type nil (expected Module)):
/vendor/rails/actionpack/lib/action_controller/helpers.rb:132:in
`extend''
/vendor/rails/actionpack/lib/action_controller/helpers.rb:132:in
`initialize_template_class''
/vendor/rails/actionpack/lib/action_controller/helpers.rb:131:in
`returning''
/vendor/rails/actionpack/lib/action_controller/helpers.rb:131:in
`initialize_template_class''
/vendor/rails/actionpack/lib/action_controller/base.rb:346:in
`process''
/vendor/rails/actionpack/lib/action_controller/base.rb:284:in
`process''
/vendor/rails/railties/lib/dispatcher.rb:32:in `dispatch''
/var/www/applications/adawn/public/dispatch.fcgi:20
/var/www/applications/adawn/public/dispatch.fcgi:18:in `each_cgi''
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each''
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi''
/var/www/applications/adawn/public/dispatch.fcgi:18
Rendering
/var/www/applications/adawn/public/../config/..//vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml
(500 Internal Error)
AND, if I delete favicon.ico, and reload the page, I STILL get this
error. In fact, I have to restart Apache and then all is well.
If I drop favicon.ico in app/public again, same error, and it wont go
away unless I restart Apache.
I have absolutely no idea why a favicon.ico sitting in app/public
would cause a rails error.
I have a feeling my .ico is bad, because if I drop a known good .ico
in the dir, I don''t get that problem. But regardless, why on earth
would I get a rails error?
Matt