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.
589525f133e603e1f17af9b03176c000?d=identicon&s=25 Abhishek shukla (Guest)
on 2009-04-14 15: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
C4bfcc81ac9281cb905f38e97e4d4e0b?d=identicon&s=25 Shandy Nantz (snantz)
on 2009-04-14 16: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" %>
589525f133e603e1f17af9b03176c000?d=identicon&s=25 Abhishek shukla (Guest)
on 2009-04-15 07:59
(Received via mailing list)
How can i call a stylesheet other then from /public/stylesheets/
folder..
1042dba6177fdc7b7fa1279215cd6a2e?d=identicon&s=25 Svetlana Vt (svetlana)
on 2009-04-15 08: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.