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

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

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