Hi,
How can we call rails erb tag in inline CSS
app/layouts/base_layout.rhtml:
<body>
<style>
#header {
background:
url(http://www.google.ca/intl/en_in/images/logo.gif) no-repeat;
}
</style>
<div id="header"></div>
</body>
I want to replace url(http://www.google.ca/intl/en_ca/images/logo.gif)
with
<%= image_tag(@customer_logo.path_to_logo_image, :width => 250, :height
=> 100) %> with out keeping #header in .css file
any help
thanks !!
--
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 [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
-~----------~----~----~----~------~----~------~--~---