Which gem is breaking Rails application.css.scss wrong number of arguments 3 for 2

前端 未结 7 1870
面向向阳花
面向向阳花 2021-01-04 10:09

Okay. This is a new problem caused by a gem update. Calling bundle update breaks my rails application. Here are the gems that changed:

# Gemfile.lock
-            


        
7条回答
  •  猫巷女王i
    2021-01-04 10:45

    I've found that the updated gems, which have in their instructions to change application.css to application.css.scss, don't recognize just 'application' as a parameter for a scss file for stylesheet_link_tag. You need to change:

    <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
    

    to this:

    <%= stylesheet_link_tag 'application.css.scss', media: 'all', 'data-turbolinks-track' => true %>
    

    This will allow you to work with the latest gems.

提交回复
热议问题