HELP ON RENDER FILE METHOD

Dear all,

kindly look at the below code

<%= link_to image_tag("backup_configure.png",:title => "view chat"),{:action => "open_live_file",:file_path => @file_path},{:target => '_new'} %>

def open_live_file

Dear all,

kindly look at the below code

<%= link_to image_tag("backup_configure.png",:title => "view chat"),{:action => "open_live_file",:file_path => @file_path},{:target => '_new'} %>

def open_live_file #-------------- @backup = ChathistoryBackup.find(:first)

unless @backup.nil? and params[:file_path].nil?

 file\_path = params\[:file\_path\]

 if File\.exists?\(&quot;\#\{file\_path\}&quot;\)

   render :file =&gt; &quot;\#\{file\_path\}&quot;, :layout =&gt; false

 end

end

end

when clicking on the above link it opens the html file on a browser window but it has not shown the images in the html file.

If you view the source in your browser what is shown for the image? Assuming it looks ok what happens if you copy the img src string and enter that directly in the browser.

If the html seems ok try copying the complete source of the page and pasting it into the html validator at The W3C Markup Validation Service to check the html is valid.

Colin