On Dec 10, 2008, at 2:04 PM, Valentino Lun wrote: > Phlip wrote: >>> The HTML source code generated >>> <img alt="Green" src="/images/green.JPG.?1228211220" /> >> >> Does >> >> http://localhost:3000/images/green.JPG.?1228211220 >> >> work? >> >> And what is that dot . doing after the JPG? >> >> Next, always use lower case file extensions - jpg. That's just for >> style, but it >> helps us diagnose problems... > > http://localhost:3000/images/green.JPG.?1228211220 > not work, error message as below, I don't know why there is a "." > appended after the filename. > No route matches "/images/green.JPG." with {:method=>:get}
Sounds to me like that extra . is the problem. The big question is why image_tag adds that extra dot. It shouldn't. Have you looked at the source code for image_tag? You didn't accidentally override it or anything like that? mcv. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

