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:
---------------------log/development.rb---------------------
Processing CatalogController#unknown_request (for 71.16.212.90 at
2008-11-11 13:02:03) [GET]
Session ID: 107f3aa7e7cd544111699d9180b38916
Parameters: {"action"=>"unknown_request", "controller"=>"catalog",
"remainder"=>["images", "products", "107-440.jpg"]}
Rendering template within layouts/catalog
Rendering catalog/unknown_request
Completed in 0.00398 (251 reqs/sec) | Rendering: 0.00210 (52%) | DB:
0.00022 (5%) | 200 OK
[http://www.mywebsite.com/bpc/images/products/107-440.jpg]
---------------------------------------------------------------
my image tag usage seems to be correct:
----------------------product.html.erb-------------------------
<% if [EMAIL PROTECTED] %>
<div class='product_picture'>
<% @product.pictures.each do |picture| %>
<%= image_tag(picture.location) %>
<% end %>
</div>
<% end %>
---------------------------------------------------------------
and here is the resulting html:
---------------------------------------------------------------
<div class='product_picture'>
<img alt="107-440" src="/bpc/images/products/107-440.png" />
<img alt="107-440" src="/bpc/images/products/107-440.jpg" />
</div>
---------------------------------------------------------------
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.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---