Closed vinaymehta closed 5 years ago
I am using best in place gem in my new project which uses ruby 2.6.1. Here is my Gemfile.lock
GIT remote: https://github.com/brentgreeff/readable_rails_log.git revision: f9912afa14e73c0646479af90e86e056817cf751 branch: master specs: readable_rails_log (0.1.0) rainbow GIT remote: https://github.com/rails/activerecord-session_store.git revision: 50e81319339d847a07a67eb32d77dbbbe4636317 specs: activerecord-session_store (1.1.3) actionpack (>= 4.0) activerecord (>= 4.0) multi_json (~> 1.11, >= 1.11.2) rack (>= 1.5.2, < 3) railties (>= 4.0) GEM remote: https://rubygems.org/ specs: actioncable (5.2.2) actionpack (= 5.2.2) nio4r (~> 2.0) websocket-driver (>= 0.6.1) actionmailer (5.2.2) actionpack (= 5.2.2) actionview (= 5.2.2) activejob (= 5.2.2) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) actionpack (5.2.2) actionview (= 5.2.2) activesupport (= 5.2.2) rack (~> 2.0) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) actionview (5.2.2) activesupport (= 5.2.2) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) activejob (5.2.2) activesupport (= 5.2.2) globalid (>= 0.3.6) activemodel (5.2.2) activesupport (= 5.2.2) activemodel-serializers-xml (1.0.2) activemodel (> 5.x) activesupport (> 5.x) builder (~> 3.1) activerecord (5.2.2) activemodel (= 5.2.2) activesupport (= 5.2.2) arel (>= 9.0) activerecord-import (0.25.0) activerecord (>= 3.2) activestorage (5.2.2) actionpack (= 5.2.2) activerecord (= 5.2.2) marcel (~> 0.3.1) activesupport (5.2.2) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) acts-as-taggable-on (6.0.0) activerecord (~> 5.0) acts_as_human (3.0.2) acts_as_list (0.9.17) activerecord (>= 3.0) addressable (2.6.0) public_suffix (>= 2.0.2, < 4.0) algoliasearch (1.25.2) httpclient (~> 2.8, >= 2.8.3) json (>= 1.5.1) algoliasearch-rails (1.20.6) algoliasearch (>= 1.17.0, < 2.0.0) json (>= 1.5.1) ancestry (3.0.5) activerecord (>= 3.2.0) arel (9.0.0) autoprefixer-rails (9.4.4) execjs awesome_print (1.8.0) bcrypt (3.1.12) best_in_place (3.0.3) actionpack (>= 3.2) railties (>= 3.2) bindex (0.5.0) bootsnap (1.3.2) msgpack (~> 1.0) bootstrap (4.2.1) autoprefixer-rails (>= 9.1.0) popper_js (>= 1.14.3, < 2) sassc-rails (>= 2.0.0) bootstrap4-kaminari-views (1.0.1) kaminari (>= 0.13) rails (>= 3.1) builder (3.2.3) byebug (10.0.2) capybara (3.12.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) rack-test (>= 0.6.3) regexp_parser (~> 1.2) xpath (~> 3.2) capybara-email (3.0.1) capybara (>= 2.4, < 4.0) mail capybara-selenium (0.0.6) capybara selenium-webdriver carrierwave (1.3.1) activemodel (>= 4.0.0) activesupport (>= 4.0.0) mime-types (>= 1.16) chargebee (2.6.1) json_pure (~> 2.1) rest-client (>= 1.8, < 3.0) childprocess (1.0.1) rake (< 13.0) cliver (0.3.2) coderay (1.1.2) coffee-rails (4.2.2) coffee-script (>= 2.2.0) railties (>= 4.0.0) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.12.2) commander (4.4.7) highline (~> 2.0.0) concurrent-ruby (1.1.4) connection_pool (2.2.2) crack (0.4.3) safe_yaml (~> 1.0.0) crass (1.0.4) devise (4.5.0) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0, < 6.0) responders warden (~> 1.2.3) devise_invitable (1.7.5) actionmailer (>= 4.1.0) devise (>= 4.0.0) diff-lcs (1.3) domain_name (0.5.20180417) unf (>= 0.0.5, < 1.0.0) dotenv (2.5.0) dotenv-rails (2.5.0) dotenv (= 2.5.0) railties (>= 3.2, < 6.0) draper (3.0.1) actionpack (~> 5.0) activemodel (~> 5.0) activemodel-serializers-xml (~> 1.0) activesupport (~> 5.0) request_store (~> 1.0) em-websocket (0.5.1) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) enumerize (2.1.2) activesupport (>= 3.2) erubi (1.8.0) ethon (0.11.0) ffi (>= 1.3.0) eventmachine (1.2.7) excon (0.62.0) execjs (2.7.0) factory_bot (5.0.0.rc1) activesupport (>= 4.2.0) factory_bot_rails (5.0.0.rc1) factory_bot (~> 5.0.0.rc1) railties (>= 4.2.0) faraday (0.15.4) multipart-post (>= 1.2, < 3) fast_jsonapi (1.5) activesupport (>= 4.2) ffi (1.9.25) fog-aws (3.3.0) fog-core (~> 2.1) fog-json (~> 1.1) fog-xml (~> 0.1) ipaddress (~> 0.8) fog-core (2.1.2) builder excon (~> 0.58) formatador (~> 0.2) mime-types fog-json (1.2.0) fog-core multi_json (~> 1.10) fog-xml (0.1.3) fog-core nokogiri (>= 1.5.11, < 2.0.0) font-awesome-rails (4.7.0.4) railties (>= 3.2, < 6.0) formatador (0.2.5) friendly_id (5.1.0) activerecord (>= 4.0.0) fullcalendar.io-rails (3.9.0) jquery-rails (>= 3.1.0, < 5.0) momentjs-rails (~> 2.15) get_process_mem (0.2.3) globalid (0.4.2) activesupport (>= 4.2.0) gon (6.2.1) actionpack (>= 3.0) multi_json request_store (>= 1.0) govspeak (5.9.0) actionview (~> 5.0) addressable (>= 2.3.8, < 3) commander (~> 4.4) htmlentities (~> 4) i18n (~> 0.7) kramdown (~> 1.15.0) money (~> 6.7) nokogiri (~> 1.5) rinku (~> 2.0) sanitize (~> 4.6) guard (2.15.0) formatador (>= 0.2.4) listen (>= 2.7, < 4.0) lumberjack (>= 1.0.12, < 2.0) nenv (~> 0.1) notiffany (~> 0.0) pry (>= 0.9.12) shellany (~> 0.0) thor (>= 0.18.1) guard-compat (1.2.1) guard-livereload (2.5.2) em-websocket (~> 0.5) guard (~> 2.8) guard-compat (~> 1.0) multi_json (~> 1.8) guard-rspec (4.7.3) guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) haml (5.0.4) temple (>= 0.8.0) tilt handlebars_assets (0.23.2) execjs (~> 2.0) sprockets (>= 2.0.0) tilt (>= 1.2) hashdiff (0.3.8) hashie (3.6.0) high_voltage (3.1.0) highline (2.0.0) htmlentities (4.3.4) http-cookie (1.0.3) domain_name (~> 0.5) http_parser.rb (0.6.0) http_signatures (0.2.2) httparty (0.17.0) mime-types (~> 3.0) multi_xml (>= 0.5.2) httpclient (2.8.3) hubspot-ruby (0.8.1) activesupport (>= 3.0.0) httparty (>= 0.10.0) i18n (0.9.5) concurrent-ruby (~> 1.0) inline_svg (1.3.1) activesupport (>= 3.0) nokogiri (>= 1.6) ipaddress (0.8.3) jbuilder (2.8.0) activesupport (>= 4.2.0) multi_json (>= 1.2) jquery-rails (4.3.3) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) jquery-ui-rails (6.0.1) railties (>= 3.2.16) jquery-validation-rails (1.19.0) json (2.1.0) json_pure (2.1.0) jwt (2.1.0) kaminari (1.1.1) activesupport (>= 4.1.0) kaminari-actionview (= 1.1.1) kaminari-activerecord (= 1.1.1) kaminari-core (= 1.1.1) kaminari-actionview (1.1.1) actionview kaminari-core (= 1.1.1) kaminari-activerecord (1.1.1) activerecord kaminari-core (= 1.1.1) kaminari-core (1.1.1) kramdown (1.15.0) launchy (2.4.3) addressable (~> 2.3) letter_opener (1.7.0) launchy (~> 2.2) libv8 (6.7.288.46.1) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) lodash-rails (4.17.10) railties (>= 3.1) loofah (2.2.3) crass (~> 1.0.2) nokogiri (>= 1.5.9) lumberjack (1.0.13) mail (2.7.1) mini_mime (>= 0.1.1) marcel (0.3.3) mimemagic (~> 0.3.2) method_source (0.9.2) mime-types (3.2.2) mime-types-data (~> 3.2015) mime-types-data (3.2018.0812) mimemagic (0.3.3) mini_magick (4.9.2) mini_mime (1.0.1) mini_portile2 (2.4.0) mini_racer (0.2.4) libv8 (>= 6.3) minitest (5.11.3) momentjs-rails (2.20.1) railties (>= 3.1) money (6.13.2) i18n (>= 0.6.4, <= 2) msgpack (1.2.6) multi_json (1.13.1) multi_xml (0.6.0) multipart-post (2.0.0) mustermann (1.0.3) mysql2 (0.4.10) nenv (0.3.0) nested_form (0.3.2) netrc (0.11.0) newrelic_rpm (5.6.0.349) nio4r (2.3.1) nokogiri (1.10.1) mini_portile2 (~> 2.4.0) nokogumbo (1.5.0) nokogiri notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) oauth2 (1.4.1) faraday (>= 0.8, < 0.16.0) jwt (>= 1.0, < 3.0) multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 3) omniauth (1.9.0) hashie (>= 3.4.6, < 3.7.0) rack (>= 1.6.2, < 3) omniauth-linkedin-oauth2 (1.0.0) omniauth-oauth2 omniauth-oauth2 (1.6.0) oauth2 (~> 1.1) omniauth (~> 1.9) orm_adapter (0.5.0) owlcarousel-rails (2.2.3.5) pg (0.21.0) poltergeist (1.18.1) capybara (>= 2.1, < 4) cliver (~> 0.3.1) websocket-driver (>= 0.2.0) popper_js (1.14.5) pry (0.12.2) coderay (~> 1.1.0) method_source (~> 0.9.0) pry-rails (0.3.9) pry (>= 0.10.4) public_suffix (3.0.3) puma (3.12.0) puma_worker_killer (0.1.0) get_process_mem (~> 0.2) puma (>= 2.7, < 4) pundit (1.1.0) activesupport (>= 3.0.0) rack (2.0.6) rack-livereload (0.3.17) rack rack-pjax (1.0.0) nokogiri (~> 1.5) rack (>= 1.1) rack-protection (2.0.5) rack rack-proxy (0.6.5) rack rack-test (1.1.0) rack (>= 1.0, < 3) rails (5.2.2) actioncable (= 5.2.2) actionmailer (= 5.2.2) actionpack (= 5.2.2) actionview (= 5.2.2) activejob (= 5.2.2) activemodel (= 5.2.2) activerecord (= 5.2.2) activestorage (= 5.2.2) activesupport (= 5.2.2) bundler (>= 1.3.0) railties (= 5.2.2) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) rails-html-sanitizer (1.0.4) loofah (~> 2.2, >= 2.2.2) rails_admin (1.4.2) builder (~> 3.1) coffee-rails (~> 4.0) font-awesome-rails (>= 3.0, < 5) haml (>= 4.0, < 6) jquery-rails (>= 3.0, < 5) jquery-ui-rails (>= 5.0, < 7) kaminari (>= 0.14, < 2.0) nested_form (~> 0.3) rack-pjax (>= 0.7) rails (>= 4.0, < 6) remotipart (~> 1.3) sass-rails (>= 4.0, < 6) railties (5.2.2) actionpack (= 5.2.2) activesupport (= 5.2.2) method_source rake (>= 0.8.7) thor (>= 0.19.0, < 2.0) rainbow (3.0.0) rake (12.3.2) rb-fsevent (0.10.3) rb-inotify (0.10.0) ffi (~> 1.0) rb-readline (0.5.5) react_on_rails (11.2.2) addressable connection_pool execjs (~> 2.5) rails (>= 3.2) rainbow (~> 3.0) redis (4.1.0) regexp_parser (1.3.0) remotipart (1.4.2) request_store (1.4.1) rack (>= 1.4) responders (2.4.0) actionpack (>= 4.2.0, < 5.3) railties (>= 4.2.0, < 5.3) rest-client (2.0.2) http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 4.0) netrc (~> 0.8) rinku (2.0.4) rspec (3.8.0) rspec-core (~> 3.8.0) rspec-expectations (~> 3.8.0) rspec-mocks (~> 3.8.0) rspec-core (3.8.0) rspec-support (~> 3.8.0) rspec-expectations (3.8.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.8.0) rspec-mocks (3.8.0) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.8.0) rspec-rails (3.8.1) actionpack (>= 3.0) activesupport (>= 3.0) railties (>= 3.0) rspec-core (~> 3.8.0) rspec-expectations (~> 3.8.0) rspec-mocks (~> 3.8.0) rspec-support (~> 3.8.0) rspec-support (3.8.0) ruby_dep (1.5.0) ruby_http_client (3.3.0) rubyzip (1.2.2) safe_yaml (1.0.4) sanitize (4.6.6) crass (~> 1.0.2) nokogiri (>= 1.4.4) nokogumbo (~> 1.4) sass (3.7.3) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) sass-rails (5.0.7) railties (>= 4.0.0, < 6) sass (~> 3.1) sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) sassc (2.0.0) ffi (~> 1.9.6) rake sassc-rails (2.1.0) railties (>= 4.0.0) sassc (>= 2.0) sprockets (> 3.0) sprockets-rails tilt selenium-webdriver (3.142.0) childprocess (>= 0.5, < 2.0) rubyzip (~> 1.2, >= 1.2.2) sendbird (0.0.3) faraday sendgrid-ruby (5.3.0) ruby_http_client (~> 3.3.0) sinatra (>= 1.4.7, < 3) sentry-raven (2.7.4) faraday (>= 0.7.6, < 1.0) shellany (0.0.1) sidekiq (5.2.5) connection_pool (~> 2.2, >= 2.2.2) rack (>= 1.5.0) rack-protection (>= 1.5.0) redis (>= 3.3.5, < 5) simple_form (4.1.0) actionpack (>= 5.0) activemodel (>= 5.0) sinatra (2.0.5) mustermann (~> 1.0) rack (~> 2.0) rack-protection (= 2.0.5) tilt (~> 2.0) slim (4.0.1) temple (>= 0.7.6, < 0.9) tilt (>= 2.0.6, < 2.1) slim-rails (3.2.0) actionpack (>= 3.1) railties (>= 3.1) slim (>= 3.0, < 5.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) sprockets-rails (3.2.1) actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) stream-ruby (2.7.1) faraday (>= 0.10.0, < 1.0) http_signatures (~> 0) jwt (~> 2.1, >= 2.1.0) temple (0.8.0) thor (0.20.3) thread_safe (0.3.6) tilt (2.0.9) twilio-ruby (5.23.0) faraday (~> 0.9) jwt (>= 1.5, <= 2.5) nokogiri (>= 1.6, < 2.0) typhoeus (1.3.1) ethon (>= 0.9.0) tzinfo (1.2.5) thread_safe (~> 0.1) uglifier (4.1.20) execjs (>= 0.3.0, < 3) unf (0.1.4) unf_ext unf_ext (0.0.7.5) vcr (4.0.0) warden (1.2.8) rack (>= 2.0.6) web-console (3.7.0) actionview (>= 5.0) activemodel (>= 5.0) bindex (>= 0.4.0) railties (>= 5.0) webdrivers (3.8.0) nokogiri (~> 1.6) rubyzip (~> 1.0) selenium-webdriver (~> 3.0) webmock (3.5.1) addressable (>= 2.3.6) crack (>= 0.3.2) hashdiff webpacker (3.5.5) activesupport (>= 4.2) rack-proxy (>= 0.6.1) railties (>= 4.2) websocket-driver (0.7.0) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.3) xpath (3.2.0) nokogiri (~> 1.8) PLATFORMS ruby DEPENDENCIES activerecord-import (~> 0.25.0) activerecord-session_store! acts-as-taggable-on (~> 6.0) acts_as_human acts_as_list algoliasearch-rails ancestry (~> 3.0) awesome_print best_in_place bootsnap bootstrap (~> 4.0) bootstrap4-kaminari-views byebug capybara capybara-email capybara-selenium carrierwave (~> 1.3.1) chargebee (~> 2) coffee-rails (~> 4.2) devise (~> 4.4) devise_invitable (~> 1.7) dotenv-rails draper enumerize (~> 2.1.2) factory_bot_rails (~> 5.0.0.rc1) fast_jsonapi fog-aws font-awesome-rails friendly_id (~> 5.1.0) fullcalendar.io-rails (~> 3.9.0) gon govspeak (~> 5.9.0) guard guard-livereload guard-rspec handlebars_assets high_voltage (~> 3.1) hubspot-ruby inline_svg jbuilder (~> 2.5) jquery-rails jquery-ui-rails jquery-validation-rails kaminari (~> 1.1) letter_opener lodash-rails mini_magick mini_racer momentjs-rails (~> 2.20.1) mysql2 (~> 0.4.10) newrelic_rpm omniauth-linkedin-oauth2 owlcarousel-rails pg (~> 0.21) poltergeist pry-rails puma (~> 3.7) puma_worker_killer pundit (~> 1.1) rack-livereload rails (~> 5.2.2) rails_admin (~> 1.2) rb-fsevent rb-readline react_on_rails readable_rails_log! rspec-rails sanitize (~> 4.6) sass-rails (~> 5.0) sendbird sendgrid-ruby sentry-raven sidekiq (~> 5.1) simple_form slim-rails stream-ruby (~> 2.7.0) twilio-ruby typhoeus tzinfo-data uglifier (>= 1.3.0) vcr web-console (>= 3.3.0) webdrivers webmock webpacker (~> 3) RUBY VERSION ruby 2.6.1p33 BUNDLED WITH 1.17.3
and application.js //= require rails-ujs //= require jquery //= require best_in_place //= require jquery_ujs //= require jquery-ui //= require best_in_place.jquery-ui
I am getting error in console like best_in_place.jquery-ui.self.js?body=1:10 Uncaught ReferenceError: BestInPlaceEditor is not defined
best_in_place.jquery-ui.self.js?body=1:10 Uncaught ReferenceError: BestInPlaceEditor is not defined
I have defined this into my view file where I am using best_in_place
$(document).ready(function() { $(".best_in_place").best_in_place(); });
Even if I remove //= require best_in_place.jquery-ui from application.js file, then it starts giving error best_in_place is not a function.
Can anyone help what is wrong here?
I got it resolved. There was another file naming best_in_place in my javascripts folder which was causing such issues.
I am using best in place gem in my new project which uses ruby 2.6.1. Here is my Gemfile.lock
and application.js //= require rails-ujs //= require jquery //= require best_in_place //= require jquery_ujs //= require jquery-ui //= require best_in_place.jquery-ui
I am getting error in console like
best_in_place.jquery-ui.self.js?body=1:10 Uncaught ReferenceError: BestInPlaceEditor is not defined
I have defined this into my view file where I am using best_in_place
Even if I remove //= require best_in_place.jquery-ui from application.js file, then it starts giving error best_in_place is not a function.
Can anyone help what is wrong here?