use an absolute path for the image file. I think you can use /images/ img02.gif.
On Jun 29, 4:19 pm, Valentino Lun <[email protected]> wrote: > 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_co > ntroller/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_co > ntroller/routing/route_set.rb:386:in > `recognize' > > /appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_co > ntroller/dispatcher.rb:182:in > `handle_request' > > /appl/lis/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_co > ntroller/dispatcher.rb:110:in > `dispatch_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 > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

