Search code examples
ruby-on-railscssblueprint-css

Can't get stylesheet to show up in ruby app


I have the following code in my application.erb file in my layouts directory. I have the blueprint directory inside of public/stylesheets however the link doesn't work. It says it is supposed to be located at <link href="/assets/blueprint/screen.css" media="screen" rel="stylesheet" type="text/css" /> But There is nothing there.

<%= stylesheet_link_tag 'blueprint/screen', :media => 'screen' %>
    <%= stylesheet_link_tag 'blueprint/print', :media => 'print' %>

Solution

  • use this<%= stylesheet_link_tag "/blueprint/screen" %> & place your screen.css in the following heirarchy:

    app/assets/stylesheets/blueprint/screen.css