title: Why isn't my images and stylesheets not working in RoR app?
body: <p>Sorry for the dumb question, but I spent 2 days trying and nothing solved the issue. My problem is that I need to "simply edit a file with your HTML and your app will work". Sounds easy, but so far it's impossible for me!</p>
  
  <p>I have this in application.html.erb:</p>
  
  <pre><code>&lt;%= stylesheet_link_tag "core.css", :media =&gt; "all" %&gt;
  &lt;%= stylesheet_link_tag "/turnkey/style.css" %&gt;
  </code></pre>
  
  <p>Just in case, <a href="https://stackoverflow.com/questions/9123661/cant-get-stylesheet-to-show-up-in-ruby-app">I followed this question</a> solutions, but it did nothing for me. <code>core.css</code> works fine, but <code>/turnkey/style.css</code> is 404.</p>
  
  <p>My style.css file is indeed there, you can see a screen capture (sorry, I can't add images):
  <a href="http://i60.tinypic.com/2e3bhpg.png" rel="nofollow noreferrer">enter link description here</a></p>
  
  <p>I tried clearing cache, tried restarting server but nothing. Tried placing the <code>style.css</code> file in  <code>assets/stylesheets</code> and nothing</p>
  
  <p>One thing I have noticed is that the original <code>core.css</code> always shows up. Even if I replace it with the contents of <code>style.css</code> , it displays the content of the original <code>core.css</code> so I thought about a cache issue, thus used the solution at <a href="http://blog.serendeputy.com/posts/how-to-prevent-browsers-from-caching-a-page-in-rails/" rel="nofollow noreferrer">http://blog.serendeputy.com/posts/how-to-prevent-browsers-from-caching-a-page-in-rails/</a></p>
  
  <pre><code>..in application_controller.rb..
    before_filter :set_cache_buster
    def set_cache_buster
      response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
      response.headers["Pragma"] = "no-cache"
      response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
    end
  </code></pre>
  
  <p>But still couldn't fix it.</p>
  
  <p>Additionally, my images at app/assets/images show as 404 as well, even though I'm uploading them to the same folder the original images are. Old images are OK, new images don't show, as if they were never uploaded</p>
  
  <p>In short, I'm totally lost. Sorry for the probably stupid question, but I just don't know what to do</p>