Forum: Ruby on Rails image source problem - help me

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
79f80071bfe54a5e492b26fbf320f74b?d=identicon&s=25 Vijayendra Achar (vijayendra)
on 2007-01-29 15:41
<% @step.each do |processdef| %>
        <% processdef.step_count.times do %>
          <td width="10%" background="/images/step1_white.jpg"> </td>
           <% end %>
           <%end%>



that background step1_white.jpg image is not displaying


images will displays only if i use this


<%= image_tag("top_band_production_uaxe.jpg" , :width=>"936" ,
:height=>"101") %>


why?


and if i want to set background image  inside <%= %> this what i have to
do
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2007-01-29 15:55
(Received via mailing list)
Your problem is likely with MS and how IE handles (or doesn't handle)
background images, not with RoR.  The next most likely problem is that
you're using tables.  Try it in a sandbox app using <div> containers
instead
of tables.

hth,
Bill
93d2b6696403e856cdbb7266223126dd?d=identicon&s=25 Ro Vent (rvent)
on 2007-01-29 16:32
Bill Walton wrote:
> Your problem is likely with MS and how IE handles (or doesn't handle)
> background images, not with RoR.  The next most likely problem is that
> you're using tables.  Try it in a sandbox app using <div> containers
> instead
> of tables.
>
> hth,
> Bill

It doesnt work on OSX either (using safari) i had to use the
image_tag... i guess is womthing on the .rhtml file...
This topic is locked and can not be replied to.