image - AWS Elastic Beanstalk -
i have rails app deployed aws elastic beanstalk. however, when open app through beanstalk environment, works fine except images not being shown. tried many things make show still not able to.
can me?
i assume using rails. if that's case, missing asset_path function.
instead of:
<img src = "/assets/abc.jpg" />
you have use like:
<img src = "<%= asset_path('abc.jpg') %>" />
more info here: http://api.rubyonrails.org/classes/actionview/helpers/asseturlhelper.html#method-i-asset_path
Comments
Post a Comment