Errno::ENOENT in ArticlesController#show

No such file or directory @ rb_sysopen - /home/app/drghaly/public/media/14838/html/14838_html_1ce3925d14048b18.png

Extracted source (around line #71):
69
70
71
72
73
74
              
path_to_file = build_content_path(params[:article_id], :html) + img['src']
content = "data:image/png;base64,#{Base64.encode64(File.read(path_to_file))}"
img['src'] = content
end
html

Rails.root: /home/app/drghaly

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"content_type"=>"html",
 "article_id"=>"14838"}

Response

Headers:

None