# IE6 CSS and Rails Routes

**URL:** <https://www.ruby-forum.com/t/ie6-css-and-rails-routes/169268>\
**Category:** Rails\
**Created:** [June 1, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/ie6-css-and-rails-routes/169268 "2009-06-01T18:11:59Z")\
**Posts on this page:** 3\
**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:** [June 1, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/ie6-css-and-rails-routes/169268/1 "2009-06-01T18:11:59Z")

</div>

I dont know if anyone has come across this issue.

I have 2 different layouts for my app. both contain the same partial  
with the same CSS files in the head.

in that i also have a IE6 CSS Hack file. Pretty standard.

The Problem in IE6  
My issue is this. on any of my main pages that have named routes like  
so  
map.privacy ‘privacy-policy’, :controller =\> “information”, :action  
=\> “privacy\_policy”  
map.admin ‘dashboard’, :controller =\> “admin”, :action =\>  
“dashboard”  
map.home ‘home’, :controller =\> “information”, :action =\> “home”  
map.search ‘search’, :controller =\> “information”, :action =\>  
“search”

the CSS is picked up fine. but if i go to an action like /information/  
home (this is in the url vs just home), where the controller is  
listed. The CSS breaks and doesnt render the page correctly. But…  
The file is still listed in the source(view source)…

very strange. any help would be great.

Thanks

---

<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:** [June 1, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/ie6-css-and-rails-routes/169268/2 "2009-06-01T22:21:24Z")

</div>

so i found out it was a pathing problem when i went to a url like /  
controller/action, it caused my stylesheet path to break.

if i add a …/stylesheets/ie6stinks.css then it works for those pages  
that have the controller in the url.

So now i have to conditionals that basically point to the same  
stylesheet stylesheets/file.css and …/stylesheets/file.css seems  
rather dumb to have to do it this way, does anyone have any ideas on  
how to remedy or DRY up this issue?

Thanks

On Jun 1, 10:11 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<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:** [June 1, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/ie6-css-and-rails-routes/169268/3 "2009-06-01T22:49:36Z")

</div>

Sorry if this is a dumb question, but are you putting actual link tags  
in your templates or are you using ‘stylesheet\_link\_tag()’ ?
