help on how append html tag

Dear all,

@doc = Hpricot(open("#{RAILS_ROOT}" + "/public/server_exe/#{list.file_path}"))

i need to add <img src = "/ScreenCapture/#{@file_name}"/> element to my @doc hpricot instance..

Please help me... how can i add the above img src element to the @doc hpricot instance..

Thank you

Newb Newb wrote:

Dear all,

@doc = Hpricot(open("#{RAILS_ROOT}" + "/public/server_exe/#{list.file_path}"))

i need to add <img src = "/ScreenCapture/#{@file_name}"/> element to my @doc hpricot instance..

Please help me... how can i add the above img src element to the @doc hpricot instance..

Thank you

Is it not possible to do so?

What have you tried so far to achieve this?

Have you looked at the docs for hpricot and used google?

Colin

Colin Law wrote:

Any sample code or links since i can try with taht

You can find documentation at http://wiki.github.com/hpricot/hpricot/ with links to examples at http://wiki.github.com/hpricot/hpricot/an-hpricot-showcase. I would suggest understanding the three pages linked to under Fundamentals there. The last has an example of adding a tag.

Colin