Skip to content

Problem with Rails 5.1.4 and apple-touch-icons asset pipeline #928

@Janfred

Description

@Janfred

I've encountered problems with the default layout since I've upgraded to Rails 5.1.4

I see the following error:

ActionView::Template::Error (The asset "apple-touch-icon-144x144-precomposed.png" is not present in the asset pipeline.):
    11: 
    12:     <!-- For third-generation iPad with high-resolution Retina display: -->
    13:     <!-- Size should be 144 x 144 pixels -->
    14:     <%= favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144' %>
    15: 
    16:     <!-- For iPhone with high-resolution Retina display: -->
    17:     <!-- Size should be 114 x 114 pixels -->
  
app/views/layouts/application.html.erb:14:in `_app_views_layouts_application_html_erb__3925031818673559404_47451698147320'

I've setup the test app using this commands:

rails new BoostrapTest
cd BootstrapTest
rails generate bootstrap:install
rails generate bootstrap:layout
# Add //= require bootstrap in app/assets/javascript/application.js
# Add  *= bootstrap_and_overrides in app/assets/stylesheets/application.css
rails generate scaffold User username:string password:string
rails generate bootstrap:themed Users
rails s

And then go to http://localhost:3000/users

In Rails 5.0.X the same setup works but already shows a deprecation hint. (Don't know the exact version, could look for it if needed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions