Errno::ENOENT in ArticlesController#show

No such file or directory @ rb_sysopen - /home/app/drghaly/public/media/12281/html/media/image5.emf

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:

{"article_id"=>"12281"}

Response

Headers:

None