Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError for bootstrap-editable-rails Sprocket 4.0.x #491

Open
medha243 opened this issue Dec 13, 2021 · 0 comments
Open

NoMethodError for bootstrap-editable-rails Sprocket 4.0.x #491

medha243 opened this issue Dec 13, 2021 · 0 comments

Comments

@medha243
Copy link

medha243 commented Dec 13, 2021

Hi,

I'm receiving the following error:

undefined method 'start_with?' for /bootstrap-editable\/.*\.(?:png|gif)$/:Regexp

def valid_asset_uri?(str)
  # Quick prefix check before attempting a full parse
  str.start_with?("file://".freeze) && parse_asset_uri(str) ? true : false
 rescue URI::InvalidURIError
  false
end

Line causing issue: https://github.com/bootstrap-ruby/bootstrap-editable-rails/blob/master/lib/bootstrap-editable-rails.rb
Gem consumed: https://rubygems.org/gems/bootstrap-editable-rails/versions/0.0.9 On removing this gem the error goes, but I cannot use .editable anymore.
Sprocket: https://www.rubydoc.info/gems/sprockets/4.0.0

Already removed all assets.precompile.
I have seen documentation for this error in github but it doesn't fit my case.

Any pointers will help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant