I set application.html.erb to reference the stylesheet using the following code
<%= stylesheet_link_tag 'stylesheets/style', :media => 'screen' %>
However, when I load localhost in a browser window, it prints this code
<link href="/assets/stylesheets/style.css" media="screen" rel="stylesheet" type="text/css" />
when I view the file directly, I show this error
Routing error
No route matches [GET] "/assets/stylesheets/style.css"
I read some other questions that rails are looked at by default in public / stylesheets, so I'm not sure why it looks into assets?
I also tried moving the css file to the asset directory to make sure that it would work, but it still does not work and gives the same routing error.
Stuck on this for a couple of days and it really makes my head so appreciate any help you can give me.
Thank you in advance
source share