The problem is that the pictures are not unloaded from the assets folder. Neither as a background, nor simply as a picture

<img src="../images/table.jpg"> 

enter image description here

    1 answer 1

    And should not .

    Files in app / assets are never sent directly to production.

    In order for this to work the way you want, the image must be saved in /public/images then it will be available by /images/table.jpg . To get the file from app/assets in the view, you need to use the asset_path asset_path :

     asset_path("table.jpg") 

    If you want to apply using css-styles, you will have to use scss and asset-path helper in it.

    For example:

     // app/assets/stylesheets/main.scss .my-selector { background-image: url(asset-path("table.jpg")); }