ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-rails
ruby-rails
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved