Heroku Rails 4 assets do not load

0

After I deploy these files below are not being loaded.

Thisismydirectory

Thisismyapplication.rb

Heretheyarebeingcalled

<%=stylesheet_link_tag"home" %>
<%= javascript_include_tag "home" %>

<img class="client" src="<%= asset_path('b.png') %>">

update:

I noticed not only these assets listed, no asset is loading.

    
asked by anonymous 28.06.2018 / 19:22

1 answer

0

Resolved

The errors were inside the scss.erb files. They did not correctly call the helpers of rails image_tag and asset_path .

My scss.erb files were as below.

Wrong

background: url(<%= image_path 'fake_slider.png' %>) no-repeat 0 0;

Right way
I put them inside double quotation marks " " and then everything worked out

background: url("<%= image_path 'fake_slider.png' %>") no-repeat 0 0;
    
30.06.2018 / 01:12