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
Re: [Rails] CSS in Views
by Andrew Otwell other posts by this author
Feb 11 2006 4:22PM messages near this date
[Rails] CSS in Views | [Rails] Re: CSS in Views
> 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

-- 
Posted with http://DevLists.com.  Sign up and save your time!
_______________________________________________
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