# CSS issue

**URL:** <https://www.ruby-forum.com/t/css-issue/196938>\
**Category:** Rails\
**Created:** [April 14, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/css-issue/196938 "2009-04-14T15:50:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [April 14, 2009, 3:50pm UTC](https://www.ruby-forum.com/t/css-issue/196938/1 "2009-04-14T15:50:57Z")

</div>

Hello friends  
I am calling css file from following folder  
“\<%= stylesheet\_path(”#{RAILS\_ROOT}/public/themes/style.css") %\>"  
And getting the following error any idea?  
ActionController::RoutingError (No route matches  
“/home/user/test/testapp/public/themes/style.css” with {:method=\>:get}):

Regards  
Abhi

---

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [April 14, 2009, 4:02pm UTC](https://www.ruby-forum.com/t/css-issue/196938/2 "2009-04-14T16:02:05Z")

</div>

Abhishek shukla wrote:

> I am calling css file from following folder  
> “\<%= stylesheet\_path(”#{RAILS\_ROOT}/public/themes/style.css") %\>"

I think that should be stylesheet\_tag.

Then take the RAILS\_ROOT and public out. You are generating HTML for a  
web  
browser, and it can only hit your web browser (roughly speaking) from  
below the  
public folder.

\<%= stylesheet\_tag(‘themes/style.css’) %\>
