Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

image fails to display when image filename contains '+' sign

#1234

I am using rails 2.1 on Windows XP SP2. My application has couple of images in public/images folder. When the image file contains name like 'LetUsC++.jpg' it fails to render with following error

Processing ApplicationController#index (for 127.0.0.1 at 2008-10-19 17:28:17) [G ET] Session ID: BAh7BzoMY3NyZl9pZCIlYzJmOTdlMGY3ZjlmYzU4YmI3ZjM3NGFiNTUyZjEx YzIiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh c2h7AAY6CkB1c2VkewA=--2d71a58f6ef184491e746e6a119bb6a281af9d16 Parameters: {"1224141909"=>nil}

ActionController::RoutingError (No route matches "/images/LetUsC++.jpg" with {:method=>:get}):

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'

....

I have tried to debug the issue to no avail. I have tried to load the URL directly with:

http://localhost:3000/images/Let...

and still get the same error. Any ideas?

Regards, Asang Dani

Reported by Asang Dani · October 19th, 2008 @ 01:15 PM

State: invalid
Milestone: 2.x
Assigned to: Pratik Pratik
Importance: none

Activity

  1. Asang Dani
    Asang Dani
    • Tag changed from image_tag, routes, windows to 2.1-stable, image_tag, routes, windows
    • Assigned user set to Pratik

    Hello Pratik, Can you shed some light? Regards, Asang..

    October 26th, 2008 @ 09:13 AM

  2. Frederick Cheung
    Frederick Cheung

    + is a reserved character in urls, so you need to be hitting images/LetUsC%2B%2B.jpg

    December 20th, 2008 @ 11:51 PM

  3. Frederick Cheung
    Frederick Cheung
    • State changed from new to invalid

    December 20th, 2008 @ 11:54 PM