Matt Jones wrote: > On Jan 9, 2:00 am, Newb Newb <[email protected]> wrote: >> #-------------- >> but still it has not shown the image in the file. >> that image also in tat file path . >> but it has not shown the image... >> any helps > > It's hard to make out what you mean, so I'll sum up what I *think* > you're asking: > > - you've got an HTML file someplace outside of RAILS_ROOT/public, that > you render for the client when they request the open_file controller > method. > > - images in that file don't display. > > If that's the case: of COURSE they aren't going to display. The HTML > file is returned, but the link to the image likely looks like this: > > <img src="some_image.png" /> > > What is the actual path that comes up in the address bar when you > click on the link? I'd bet that it's NOT: > > /controller_name/open_file/path/to/some/file > > as the file_path parameter is probably getting escaped... > > --Matt Jones
Thanks for your reply. yes images in that file dont display <img src="MyCaptures/some_image.png"> the actual path that comes up in the address bar when click on the link is below controller_name/open_file/path/to/some/file Thanks in advance -- 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]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

