Forum: Ruby Question about displaying an image with green shoes

64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-05-31 22:52
(Received via mailing list)
Hello team,

I am trying to display an image using green shoes. Instead of the image
the
system I get a very small rectangle with the bottom right corner  bent
frontward. I tried a png and also jpg unsuccessfully.

image File.join DIR,
"/home/rstudent/MyData/Programs/shoes/OIT_Logo2.png"

or

image File.join DIR,
"/home/rstudent/MyData/Programs/shoes/OIT_Logo2.jpg"

I don't get an error, but I don't get an image either.

Any thoughts?
689dae2a2a14404ed27048633f472147?d=identicon&s=25 ashbb shoeser (satoshi_a)
on 2013-06-01 03:13
(Received via mailing list)
Hi Ruby Student,

Try out the following:

  image "/home/rstudent/MyData/Programs/shoes/OIT_Logo2.png"

I guess that the path is already absolute. ;-)

Regards,
ashbb
Aa082c8b00a50928e5860dcd70bf2368?d=identicon&s=25 tamouse mailing lists (Guest)
on 2013-06-03 13:14
(Received via mailing list)
On May 31, 2013 3:53 PM, "Ruby Student" <ruby.student@gmail.com> wrote:
>
> Hello team,
>
> I am trying to display an image using green shoes. Instead of the image
the system I get a very small rectangle with the bottom right corner
bent
frontward. I tried a png and also jpg unsuccessfully.
>
> image File.join DIR, "/home/rstudent/MyData/Programs/shoes/OIT_Logo2.png"

Do you know what File.join does?
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-06-03 15:39
(Received via mailing list)
Hi Tamouse,

I think I do now, after Ashbb replied to my email.

Thank you for taking your time to reply to my post.


On Mon, Jun 3, 2013 at 7:13 AM, tamouse mailing lists <
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.