The problem is that the path is relative.
I’ve done a little googling, queried my ruby and rails ML archives,
glanced
at hpricot code, and looked through the method lists for open-uri and
hpricot.
So far, I don’t see anything that looks very useful.
Is there a way to have it give me the absolute path so that I can
reference
the picture later?
The only thing I’ve found that works so far involves string
manipulation,
which seems like a brittle workaround to replace something that probably
exists if I could just find it.
The problem is that the path is relative.
I’ve done a little googling, queried my ruby and rails ML archives, glanced
at hpricot code, and looked through the method lists for open-uri and
hpricot.
So far, I don’t see anything that looks very useful.
Is there a way to have it give me the absolute path so that I can reference
the picture later?
Hpricot is just telling you what’s in the HTML. Munging the
document’s contents are your responsibility, not the parser’s
The only thing I’ve found that works so far involves string manipulation,
which seems like a brittle workaround to replace something that probably
exists if I could just find it.