[Rails] Re: CSS in Views
by Michael Boutros other posts by this author
Feb 11 2006 6:24PM messages near this date
Re: [Rails] CSS in Views
|
[Rails] Re: CSS in Views
Andrew Otwell wrote:
> >How can I link to a CSS file in one of my view files?
>
> Typically you do this in your layouts:
>
> <%= stylesheet_link_tag "filename", :media => "all" %>
>
> More here: http://rails.rubyonrails.com/classes/ActionView/Helpers/
> AssetTagHelper.html#M000397
I just tried this and in the source it is looking for
/stylesheets/filename. In RadRails you cannot create folders, so I
created the folder in explorer and moved the style.css file into that
folder, but it still is not reading it. Also, I have changed filename to
style.css. Thanks :)
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Rails mailing list
Rails@[...].org
http://lists.rubyonrails.org/mailman/listinfo/rails
Thread:
Michael Boutros
Andrew Otwell
Michael Boutros
Alan Francis
Tony Collen
Mark Wilden
Ben Munat
Ken Kousen
Ben Munat
Michael Boutros
|