title: Ruby on Rails: How can I add a css file with rails project?
body: <p>The application.html.erb file:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Site&lt;/title&gt;
    &lt;%= stylesheet_link_tag    :all %&gt;
    &lt;%= javascript_include_tag "application" %&gt;
    &lt;%= csrf_meta_tags %&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;%= yield %&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have a file "cake.generic.css" in public/ folder.</p>
  
  <p>But when I reload the page the effect of css file is not working.</p>
  
  <p>If I see the page view source I see something like this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Site&lt;/title&gt;
    &lt;link href="/assets/all.css" media="screen" rel="stylesheet" type="text/css" /&gt;
    &lt;script src="/assets/jquery.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/jquery_ujs.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/home.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/assets/application.js?body=1" type="text/javascript"&gt;&lt;/script&gt;
  
    &lt;meta content="authenticity_token" name="csrf-param" /&gt;
  &lt;meta content="6CPvchXr1amagxd7VmOzB82WGx/WmjfDOXjMLfjLzqQ=" name="csrf-token" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h1&gt;Home#index&lt;/h1&gt;
  &lt;p&gt;Find me in app/views/home/index.html.erb&lt;/p&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What should I do to fix this problem? </p>
  
  <p>How can I set the public folder for stylesheets and javascripts? </p>
  
  <p>It looks that app/assets folder is set for css and js files? </p>