when I use image_tag or a stylesheet tag, the underlying images or
stylesheets aren’t loading. Everything used to work properly, but I ran
into some errors and have had to change some settings, but nothing
relating to image_tag or the stylesheet tag.
It produces this error in the log when trying to process the image:
I really am lost over what i need to do to fix this. Any ideas? It
looks like it’s now treating the image_tag as a url request somehow and
sending it into my catchall unknown_request route.
I really am lost over what i need to do to fix this. Any ideas? It
looks like it’s now treating the image_tag as a url request somehow
and
sending it into my catchall unknown_request route.
I realize this might be obvious, but does RAILS_ROOT/public/bpc/images/
products/107-440.png exist in the filesystem?
I really am lost over what i need to do to fix this. Any ideas? It
looks like it’s now treating the image_tag as a url request somehow
and
sending it into my catchall unknown_request route.
I realize this might be obvious, but does RAILS_ROOT/public/bpc/images/
products/107-440.png exist in the filesystem?
Yes, I did check that. I wish that was the problem. I think I’m
getting closer to figuring it out though, I think it might have
something to do with my dispatch.fcgi file.
Well I think I’ve sortof figured it out if anyone else is having a
similar problem.
The error was a:
ActionController::RoutingError (No route matches …
to fix it, I had to edit my .htaccess file.
It seems that in most cases you are supposed to change this line:
RewriteRule ^(.)$ dispatch.cgi [QSA,L]
To this line:
RewriteRule ^(.)$ dispatch.fcgi [QSA,L]
But when I changed it back, now everything seems to be working fine.
Since I think I’m supposed to be using the fcgi instead of cgi I need to
look into it a little more to find out why this is happening.
okay now i got fastcgi working again. i think it ultimately was a
problem with order of commands in the .htaccess file. I’ve included my
.htaccess file below if anyone else has this type of problem.