mercury-rails no editable area js error 'Uncaught TypeError: Cannot read property 'konqueror' of undefined ' -
i cannot life of me figure out why isn't working!
i'm working through railscast mercury , can't editable area show up.
gemfile
source 'https://rubygems.org' gem 'rails', '3.2.13' gem 'mercury-rails', git: 'https://github.com/jejacks0n/mercury.git' gem 'sqlite3' group :assets gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails'
routes
mercuryrelational::application.routes.draw mount mercury::engine => '/' root to: "pages#show"
show page
<h1>show page</h1> <div id="page_content" class="mercury-region" data-type="editable"><%= raw(@page.content) %></div>
url show page http://localhost:4002/editor
still there no editable blue box around text.
however! error in javascript terminal though "uncaught typeerror: cannot read property 'konqueror' of undefined"
please help!
i've found problem , have solved in following way!
it turns out mercury using jquery method jquery.browser
, deprecated in jquery 1.9 upgrade.
i'm using gem 'mercury-rails', git: 'git://github.com/jejacks0n/mercury'
fixed , don't know how else document if solution relevant you, latest commit i'm using mercury gem, d065b2c31b895af03749254b521f0c0ee18fb25a
.
including gem solved issue me.
gem 'jquery-migrate-rails'
and don't forget //= require jquery-migrate-min
in application.js file, after requiring other jquery files.
Comments
Post a Comment