Forum: Ruby on Rails CSS issue...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Abhishek shukla (Guest)
on 2009-04-14 17:50
(Received via mailing list)
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
Shandy N. (Guest)
on 2009-04-14 18:55
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" %>
Abhishek shukla (Guest)
on 2009-04-15 09:59
(Received via mailing list)
How can i call a stylesheet other then from /public/stylesheets/
folder..
Svetlana V. (Guest)
on 2009-04-15 10:43
Abhishek shukla wrote:
> How can i call a stylesheet other then from /public/stylesheets/
> folder..

<%= stylesheet_link_tag "/themes/style" %>
must be work
This topic is locked and can not be replied to.