Send to a Friend

waterskier2007's avatar

How to open a file in ruby?

Asked by waterskier2007 (2058points) April 21st, 2009

I am trying to display an image in a ruby program. I have thought of a way to do this but it may be a completely crazy idea that wont work. what i am thinking is having a html file in the same folder as the ruby code. so on the last line of code it accesses that file and basically redirects the person to the web page with the image that i want them to see. if anyone knows how to do this or knows another method of displaying the image that would be great. i am working on a mac

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.