Monday, November 9, 2009

[Rails] Re: Problems with public/images

Marnen Laibow-Koser wrote:
> Chris To wrote:
>> Hi all,
>>
>> I'm having trouble getting images to show up on the browser. I added an
>> image to the public/images directory in Textmate, however all I get is
>> the image alt information when I refresh my browser.
> [...]
>>
>> In addition (oddly), whenever I close Textmate out and reopen it, the
>> image file I inserted in public/images is gone. I couldn't find anything
>> helpful from google when I entered the information.
>>
>> I appreciate any help.
>
> Sounds like the image file isn't actually getting put where you think it
> is. Why not use the Finder or the command line to put the file in the
> right place?
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> marnen@marnen.org


Thanks for the replies everyone,

Adding the file directly within the finder worked (Marnen's suggestion).
I tried doing

<%= image_tag("/images/kanagawa.jpg") %>

but that didn't work either. Adding image files that aren't really
associated with your application must be a curiosity within Textmate
itself.

Thanks everyone for your help!

--
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate