On 8 September 2010 21:50, Abder-Rahman Ali <[email protected]> wrote: > Thanks @Colin. > > Yes, I think that the path was an issue. > > Now, in "show.html.rb", I have made this change: > > <img src="C:\Users\Abder-Rahman\Desktop\Research\dicom\<%= > @examination.image %>" /> > > And, when I "View source", I have the following path for example > > <img > src="C:\Users\Abder-Rahman\Desktop\Research\dicom\05115014-mr-siemens-avanto-syngo-with-palette-icone.jpg" > /> > > And, when I try this path in a browser I get the image displayed.
You cannot show files on the local machine (that is C:) in a web page, the browser will not allow it. Usually images are put in a folder under the public folder of your app. For example if you put them in public/images then the img src should be /images/filename.jpg Colin -- 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.

