This project is archived and is in readonly mode.
image fails to display when image filename contains '+' sign
Reported by Asang Dani | October 19th, 2008 @ 01:15 PM | in 2.x
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
Comments and changes to this ticket
-
Asang Dani October 26th, 2008 @ 09:13 AM
- 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..
-
Frederick Cheung December 20th, 2008 @ 11:51 PM
+ is a reserved character in urls, so you need to be hitting images/LetUsC%2B%2B.jpg
-
Frederick Cheung December 20th, 2008 @ 11:54 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>