rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org
2004-Nov-02 15:54 UTC
Convention to get CSS into views
Hi Can someone point me to a rails example that shows how to implement CSS into custom views. I can always brute force it, but am looking for the ''rails'' way to do it. Thanks -- Jim Freeze
put your stylesheet into /public/stylesheets/ and include them in the html header. Possibly in your layout On Tue, 2 Nov 2004 15:54:56 +0000, rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org <rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org> wrote:> Hi > > Can someone point me to a rails example that shows how to implement > CSS into custom views. I can always brute force it, but am looking > for the ''rails'' way to do it. > > Thanks > > -- > Jim Freeze > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Tobi
rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org
2004-Nov-03 14:25 UTC
Re: Convention to get CSS into views
* Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [2004-11-02 11:16:10 -0500]:> put your stylesheet into /public/stylesheets/ and include them in the > html header. Possibly in your layout >Thanks. What do you specify as the path inside your view? <head> <link rel="stylesheet" type="text/css" href="what_is_this_path.css" > </head> -- Jim Freeze
<link rel="stylesheet" type="text/css" href="/stylesheets/yourcss.css" > On Wed, 3 Nov 2004 14:25:58 +0000, rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org <rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org> wrote:> * Tobias Luetke <tobias.luetke-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [2004-11-02 11:16:10 -0500]: > > > put your stylesheet into /public/stylesheets/ and include them in the > > html header. Possibly in your layout > > > > Thanks. > What do you specify as the path inside your view? > > <head> > <link rel="stylesheet" type="text/css" href="what_is_this_path.css" > > </head> > > -- > > > Jim Freeze > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >