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

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -