Mister Blood Rails
2008-Apr-17 13:36 UTC
My CSS file won''t show (even though everything says it should)
i can''t get my app to use my css file (unless i remove the !DOCTYPE). in development mode with webrick i don''t have this problem, only here in production with mod_rails: <VirtualHost *:80> ServerName mysite.com ServerAlias www.mysite.com DocumentRoot /services/httpd/mysite.com/public <Directory "/services/httpd/mysite.com/public"> # give apache access to the public/ folder.. Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> RailsBaseURI / </VirtualHost> i call my stylesheet like this: <%= stylesheet_link_tag ''display'' %> which ends up looking like: <link href="/stylesheets/display.css?1208424886" media="screen" rel="stylesheet" type="text/css" /> i can access http://www.mysite.com/stylesheets/display.css just fine. i just don''t get it... by removing <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http:// www.w3.org/TR/html4/strict.dtd"> from my header though, everything works, but i''m not removing my doctype... thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wildtangent
2008-Apr-17 16:52 UTC
Re: My CSS file won''t show (even though everything says it should)
is it possible that HTML4 would not like the self-closed <link /> tag? try hard coding a <link href="/stylesheets/display.css?1208424886" media="screen" rel="stylesheet" type="text/css"></link> or using a more up to date doctype (e.g. XHTML 1 transitional) and see if that makes and difference On Apr 17, 2:36 pm, Mister Blood Rails <bloodra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i can''t get my app to use my css file (unless i remove the !DOCTYPE). > in development mode with webrick i don''t have this problem, only here > in production with mod_rails: > > <VirtualHost *:80> > ServerName mysite.com > ServerAliaswww.mysite.com > DocumentRoot /services/httpd/mysite.com/public > <Directory "/services/httpd/mysite.com/public"> # give apache access > to the public/ folder.. > Options FollowSymLinks > AllowOverride None > Order allow,deny > Allow from all > </Directory> > RailsBaseURI / > </VirtualHost> > > i call my stylesheet like this: > > <%= stylesheet_link_tag ''display'' %> > > which ends up looking like: > > <link href="/stylesheets/display.css?1208424886" media="screen" > rel="stylesheet" type="text/css" /> > > i can accesshttp://www.mysite.com/stylesheets/display.cssjust fine. > > i just don''t get it... > > by removing <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> from my header though, everything > works, but i''m not removing my doctype... > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Kyle
2008-Apr-17 16:56 UTC
Re: My CSS file won''t show (even though everything says it should)
Try clearing your sessions and/or restarting your server. (Who knows.) -Kyle On Apr 17, 8:36 am, Mister Blood Rails <bloodra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i can''t get my app to use my css file (unless i remove the !DOCTYPE). > in development mode with webrick i don''t have this problem, only here > in production with mod_rails: > > <VirtualHost *:80> > ServerName mysite.com > ServerAliaswww.mysite.com > DocumentRoot /services/httpd/mysite.com/public > <Directory "/services/httpd/mysite.com/public"> # give apache access > to the public/ folder.. > Options FollowSymLinks > AllowOverride None > Order allow,deny > Allow from all > </Directory> > RailsBaseURI / > </VirtualHost> > > i call my stylesheet like this: > > <%= stylesheet_link_tag ''display'' %> > > which ends up looking like: > > <link href="/stylesheets/display.css?1208424886" media="screen" > rel="stylesheet" type="text/css" /> > > i can accesshttp://www.mysite.com/stylesheets/display.cssjust fine. > > i just don''t get it... > > by removing <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> from my header though, everything > works, but i''m not removing my doctype... > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Conrad Taylor
2008-Apr-17 20:13 UTC
Re: My CSS file won''t show (even though everything says it should)
Hi, I would recommend checking your HTML against the following: http://validator.w3.org/check Next, is there a particular reason why you''re not using XHTML? Good luck, -Conrad On Thu, Apr 17, 2008 at 9:56 AM, Kyle <kyle.rabe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Try clearing your sessions and/or restarting your server. (Who > knows.) > > -Kyle > > On Apr 17, 8:36 am, Mister Blood Rails <bloodra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > i can''t get my app to use my css file (unless i remove the !DOCTYPE). > > in development mode with webrick i don''t have this problem, only here > > in production with mod_rails: > > > > <VirtualHost *:80> > > ServerName mysite.com > > ServerAliaswww.mysite.com > > DocumentRoot /services/httpd/mysite.com/public > > <Directory "/services/httpd/mysite.com/public"> # give apache access > > to the public/ folder.. > > Options FollowSymLinks > > AllowOverride None > > Order allow,deny > > Allow from all > > </Directory> > > RailsBaseURI / > > </VirtualHost> > > > > i call my stylesheet like this: > > > > <%= stylesheet_link_tag ''display'' %> > > > > which ends up looking like: > > > > <link href="/stylesheets/display.css?1208424886" media="screen" > > rel="stylesheet" type="text/css" /> > > > > i can accesshttp://www.mysite.com/stylesheets/display.cssjust fine. > > > > i just don''t get it... > > > > by removing <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" " > http://www.w3.org/TR/html4/strict.dtd"> from my header though, everything > > works, but i''m not removing my doctype... > > > > thanks. > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Mister Blood Rails
2008-Apr-20 08:39 UTC
Re: My CSS file won''t show (even though everything says it should)
No, no reason, I just switched to XHTML now :) Problem fixed though, turned out to be a lack of mod_mime in Apache. Thanks! On Apr 18, 4:13 am, "Conrad Taylor" <conra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, I would recommend checking your HTML against the following:http://validator.w3.org/check > > Next, is there a particular reason why you''re not using XHTML? > > Good luck, > > -Conrad > > On Thu, Apr 17, 2008 at 9:56 AM, Kyle <kyle.r...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Try clearing your sessions and/or restarting your server. (Who > > knows.) > > > -Kyle > > > On Apr 17, 8:36 am, Mister Blood Rails <bloodra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > i can''t get my app to use my css file (unless i remove the !DOCTYPE). > > > in development mode with webrick i don''t have this problem, only here > > > in production with mod_rails: > > > > <VirtualHost *:80> > > > ServerName mysite.com > > > ServerAliaswww.mysite.com > > > DocumentRoot /services/httpd/mysite.com/public > > > <Directory "/services/httpd/mysite.com/public"> # give apache access > > > to the public/ folder.. > > > Options FollowSymLinks > > > AllowOverride None > > > Order allow,deny > > > Allow from all > > > </Directory> > > > RailsBaseURI / > > > </VirtualHost> > > > > i call my stylesheet like this: > > > > <%= stylesheet_link_tag ''display'' %> > > > > which ends up looking like: > > > > <link href="/stylesheets/display.css?1208424886" media="screen" > > > rel="stylesheet" type="text/css" /> > > > > i can accesshttp://www.mysite.com/stylesheets/display.cssjustfine. > > > > i just don''t get it... > > > > by removing <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" " > >http://www.w3.org/TR/html4/strict.dtd"> from my header though, everything > > > works, but i''m not removing my doctype... > > > > thanks.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---