Because I use the changes to the Oracle adapter that haven''t made it
to a released version of Rails yet, I try to keep up to date with the
trunk. I find that this helps me focus my attention on removing
deprecated calls, etc, etc.
Usually everything continues to work fine. However, recently, I''ve
been getting routing errors on images. My real examples are more
complex, so I made a shorter test, just to isolate the problem:
<div><%= image_tag("search_icon.gif") %></div>
..which correctly yields this in the generated HTML page:
<div><img alt="Search_icon"
src="/images/search_icon.gif" /></div>
"search_icon.gif" is present in the public/images folder of the
application.
However, the image doesn''t render to the page; only the alt text is
shown, and this shows up in the development log:
ActionController::RoutingError (Recognition failed for
"/images/search_icon.gif"):
/vendor/rails/actionpack/lib/action_controller/routing.rb:469:in
`recognition_failed''
/vendor/rails/actionpack/lib/action_controller/routing.rb:459:in
`recognize!''
/vendor/rails/railties/lib/dispatcher.rb:30:in `dispatch''
/vendor/rails/railties/lib/webrick_server.rb:109:in
`handle_dispatch''
/vendor/rails/railties/lib/webrick_server.rb:75:in `service''
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''
c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''
c:/ruby/lib/ruby/1.8/webrick/server.rb:155:in `start_thread''
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start''
c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''
c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start''
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each''
c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start''
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
/vendor/rails/railties/lib/webrick_server.rb:61:in `dispatch''
script/server:49
Rendering
./script/../config/..//vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.rhtml(404
Page Not Found)
I''m using the default routes.rb file that Rails generated for me back
when I was running 0.13.
The above test was performed under Windows, with Webrick in development mode.
The Webrick console shows this:
127.0.0.1 - - [15/Sep/2005:11:10:29 Eastern Standard Time] "GET
/images/search_icon.gif HTTP/1.1" 404 611
http://127.0.0.1:3000/internal/new_members -> /images/search_icon.gif
I haven''t walked through the revisions one by one, but if I replace
the trunk copy with revision 2065 (the last one I was running before I
updated, and things broke), everything works fine, with no changes.
Am I the only one having this problem? Is it specific to Windows in some way?
Thanks,
--Wilson.