bootstrap-ruby / bootstrap-editable-rails

In-place editing with Twitter Bootstrap for Rails
http://rubygems.org/gems/bootstrap-editable-rails
MIT License
216 stars 52 forks source link

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

Open medha243 opened 2 years ago

medha243 commented 2 years ago

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

Gem consumed: https://rubygems.org/gems/bootstrap-editable-rails/versions/0.0.9 On removing this gem the error goes but I cannot trace back all usages of this gem. 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!

Duplicate of: https://github.com/rails/sprockets-rails/issues/491 opening it under this thread in case someone has any context.