he means you should change this
Dir["./public/images/dcm_ files/*.dcm"].each do |dcm| dicom_files << dcm end to this Dir["public/images/dcm_ files/*.dcm"].each do |dcm| > dicom_files << dcm > end putting the / at the beginning means c:/public/images/dcm_file/*.dcm that means the path is absolute. On Thu, Sep 9, 2010 at 7:23 AM, Abder-Rahman Ali <[email protected]>wrote: > Thanks @Colin. > > Yes, this is the point I'm not able to perform: > > "strip the bit off the front before you pass it to image_tag'. > > How can I remove the path to the file and keep the file name which I > will then pass? > > Thanks. > -- > Posted via http://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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

