title: Ruby how to get file from public dir?
body: <pre><code>def get_xml
      path = &quot;ddd-66252.pdf&quot; // in public
  
      way = File.basename(path)
      diff = File.read(path)
      render :xml =&gt; diff
  end
  </code></pre>
  <p>How i can get file from path and need to look like file</p>