title: No such file or directory in saving a file
body: <p>My code is here</p>
  
  <pre><code>File.open("#{Rails.root}/public/images/test.png","wb") do |file|
        file.write(Base64.decode64(params[:image_data]))
      end
  </code></pre>
  
  <p>It gives us no such file or directory test.png i want to crate a file in images folder test.png and save data and my folder <strong>permissions is write,read and access</strong></p>