I don't think you want to put an image tag there, probably just
something like this instead:


<style>
        #header {
            background: url(<%= @customer_logo.path_to_logo_image %>)
no-repeat;
        }
</style>


On Feb 18, 10:30 am, "Srinath A." <[email protected]>
wrote:
> Hi,
> but i code like this :
>
> <style>
>         #header {
>             background:
> url(<%= image_tag(@customer_logo.path_to_logo_image, :width => 250,
> :height => 100) %>) no-repeat;
>             }
>     </style>
>
> this is producing error...
>
> Jeff Emminger wrote:
> > Exactly as you described should work.
>
> > On Feb 18, 10:17 am, "Srinath A." <[email protected]>
>
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to