# Stylesheet\_link\_tag

**URL:** <https://www.ruby-forum.com/t/stylesheet-link-tag/190090>\
**Category:** Rails\
**Created:** [June 14, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/stylesheet-link-tag/190090 "2010-06-14T18:34:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [June 14, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/stylesheet-link-tag/190090/1 "2010-06-14T18:34:27Z")

</div>

I know that the following statement loads the scaffold stylesheet, but  
what exactly does stylesheet\_link\_tag do here?

\<%= stylesheet\_link\_tag ‘scaffold’ %\>

Thanks.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [June 14, 2010, 7:01pm UTC](https://www.ruby-forum.com/t/stylesheet-link-tag/190090/2 "2010-06-14T19:01:28Z")

</div>

Abder-rahman Ali wrote:

> I know that the following statement loads the scaffold stylesheet, but  
> what exactly does stylesheet\_link\_tag do here?
> 
> \<%= stylesheet\_link\_tag ‘scaffold’ %\>

Read the docs and look at the generated HTML, and all will become clear.

> Thanks.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/stylesheet-link-tag/190090/3 "2010-06-17T16:22:18Z")

</div>

## stylesheet\_link\_tag returns a stylesheet link tag for the sources specified as arguments. Basically you do not need to specify the .css extension. It is appended automatically. If you have several CSS files in the stylesheets directory, you can include _all_ styles using :all as the source.

Edmond K.  
Software Developer  
Baobab Health Trust ([http://www.baobabhealth.org/](http://www.baobabhealth.org/))  
Lilongwe  
Malawi

site: [http://sites.google.com/site/ceekaysgroup/](http://sites.google.com/site/ceekaysgroup/)  
blog: [http://edceekays.blogspot.com/](http://edceekays.blogspot.com/)  
profile: [http://www.google.com/profiles/kachaleedmond](http://www.google.com/profiles/kachaleedmond)
