I hear relative_url_root works only (mahbe) with Apache, so I can
probably assume that''s what you''re using? Then I will.
You''ll probably have to use mod_rewrite in your .htaccess file, and
point the /images/ folder to wherever your images are... I can''t help
much more than that since I haven''t gotten much experience with
relative_url_root, though.
-Ryan
On Jan 9, 4:43 pm, me <brooh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m using relative_url_root to allow my app to be run from a sub-
> domain. Things work fine except with images that are referenced in my
> CSS code.
>
> For example,
> background-image: url(/images/bg_image.jpg);
> does not take into account the value in relative_url_root.
> Consequently, my background image (and other images similarly
> referenced in my stylesheet) are not loadable.
>
> Anyone know a workaround?
>
> Thanks,
>
> -A.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---