# Overriding stylesheet\_link\_tag to accept a conditions hash

**URL:** <https://www.ruby-forum.com/t/overriding-stylesheet-link-tag-to-accept-a-conditions-hash/145515>\
**Category:** Rails\
**Created:** [August 11, 2008, 5:10am UTC](https://www.ruby-forum.com/t/overriding-stylesheet-link-tag-to-accept-a-conditions-hash/145515 "2008-08-11T05:10:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 11, 2008, 5:10am UTC](https://www.ruby-forum.com/t/overriding-stylesheet-link-tag-to-accept-a-conditions-hash/145515/1 "2008-08-11T05:10:58Z")

</div>

so im browsing [rails-doc.org](http://rails-doc.org) in a fruitless attempt to see how hard  
this is to implement… maybe someone can give me some better ideas…

i want to override stylesheet\_link\_tag like this…

\<%= stylesheet\_link\_tag :all, { :except =\> :login, :cache =\>  
true, :media =\> :print } %\>

any ideas?

im guessing it would ultimately involve overriding  
expand\_stylesheet\_sources but im not sure how to get the conditions to  
get down to there… nor the best place to override it…
