No route matches for stylesheets

Dear all

Why the following error appear in development.log?

Processing ApplicationController#index (for 160.1.42.69 at 2009-06-29
19:09:05) [GET]

ActionController::RoutingError (No route matches
“/stylesheets/images/img02.gif” with {:method=>:get}):
/appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/recognition_optimisation.rb:66:in
recognize_path' /appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:386:inrecognize’
/appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:182:in
handle_request' /appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:indispatch_unlocked’

Below is part of my css file, it is no problem to display the img02.gif
in my browser
#menu {
float: left;
width: 100%;
height: 40px;
margin: 0 auto;
background: #4E8CFF url(images/img02.gif) no-repeat;
}

FYI, my route.rb
map.connect ‘:controller/:action.:format’
map.connect ‘:controller/:action/:id’
map.connect ‘:controller/:action/:id.:format’

It is so strange…

Please kindly help. Thank you very much

Valentino

use an absolute path for the image file. I think you can use /images/
img02.gif.

On Jun 29, 4:19 pm, Valentino L. [email protected]

Valentino L. wrote:

background: #4E8CFF url(images/img02.gif) no-repeat;

i think you correct with url(…/images/img02.gif)