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') %>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---