CSS issue


#1

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


#2

Abhishek shukla wrote:

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

Is this code in between your head tags? Can’t you use:
<%= stylesheet_link_tag “style” %>


#3

How can i call a stylesheet other then from /public/stylesheets/
folder…


#4

Abhishek shukla wrote:

How can i call a stylesheet other then from /public/stylesheets/
folder…

<%= stylesheet_link_tag “/themes/style” %>
must be work