You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the sprockets-rails gem version 3.0.0 or above and have Rails.application.config.assets.compile set to false the embedded_svg helper will fail because Rails.application.assets will return nil and therefore can't find the asset.
There are a bunch of different ways to handle this. Personally I used a modified version of the code provided here to get around this issue and return the proper filepath to be opened. But I guess since this helper method is only being used for alert-icon.svg it might be easier to just get rid of the helper method altogether?
The text was updated successfully, but these errors were encountered:
When using the
sprockets-rails
gem version 3.0.0 or above and haveRails.application.config.assets.compile
set tofalse
theembedded_svg
helper will fail becauseRails.application.assets
will returnnil
and therefore can't find the asset.There are a bunch of different ways to handle this. Personally I used a modified version of the code provided here to get around this issue and return the proper filepath to be opened. But I guess since this helper method is only being used for
alert-icon.svg
it might be easier to just get rid of the helper method altogether?The text was updated successfully, but these errors were encountered: