# Jquery and rails

**URL:** <https://metaruby.com/t/jquery-and-rails/2221>\
**Category:** Ruby Questions\
**Tags:** ruby, javascript\
**Created:** [April 3, 2019, 7:05pm UTC](https://metaruby.com/t/jquery-and-rails/2221 "2019-04-03T19:05:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![merlin2049er](https://metaruby.com/user_avatar/metaruby.com/merlin2049er/32/1168_2.png) [@merlin2049er](https://metaruby.com/u/merlin2049er)\
**Post date:** [April 3, 2019, 7:05pm UTC](https://metaruby.com/t/jquery-and-rails/2221/1 "2019-04-03T19:05:36Z")

</div>

Hi, I’m confused with why my local (or development environment) works well with Jquery 3.3.1 (I have some dropdown hover jquery events) , but when I build it on Heroku (production), it fails to load Jquery 3.3.1, I git version 1.12.4 (and my jquery scripts aren’t running.)

No Idea why it works in development, but fails in production.

---

<div class="post-metadata">

**Author:** ![Ohm](https://metaruby.com/user_avatar/metaruby.com/ohm/32/828_2.png) [@Ohm](https://metaruby.com/u/Ohm)\
**Post date:** [April 4, 2019, 8:42am UTC](https://metaruby.com/t/jquery-and-rails/2221/2 "2019-04-04T08:42:29Z")

</div>

Does the development console in Chrome/Firefox/Your browser say anything is broken?

---

<div class="post-metadata">

**Author:** ![merlin2049er](https://metaruby.com/user_avatar/metaruby.com/merlin2049er/32/1168_2.png) [@merlin2049er](https://metaruby.com/u/merlin2049er)\
**Post date:** [April 5, 2019, 7:29pm UTC](https://metaruby.com/t/jquery-and-rails/2221/3 "2019-04-05T19:29:30Z")

</div>

I get the following error, (just one of the jquery scripts I use).

Uncaught ReferenceError: CKEDITOR is not defined

but all my jquery isn’t functioning, I’ve got dropdown hover menus, and using lightbox (which is a photo gallery sort of thing).

Here’s the site if your interested in taking a look… (it’s a project I’ve been working on to learn ROR).

[https://cryptic-inlet-13518.herokuapp.com/](https://cryptic-inlet-13518.herokuapp.com/)

---

<div class="post-metadata">

**Author:** ![Ohm](https://metaruby.com/user_avatar/metaruby.com/ohm/32/828_2.png) [@Ohm](https://metaruby.com/u/Ohm)\
**Post date:** [April 6, 2019, 7:31am UTC](https://metaruby.com/t/jquery-and-rails/2221/4 "2019-04-06T07:31:15Z")

</div>

The error stops further execution of your javascript, so you should definitely check to fix that one first.

---

<div class="post-metadata">

**Author:** ![merlin2049er](https://metaruby.com/user_avatar/metaruby.com/merlin2049er/32/1168_2.png) [@merlin2049er](https://metaruby.com/u/merlin2049er)\
**Post date:** [April 8, 2019, 8:41pm UTC](https://metaruby.com/t/jquery-and-rails/2221/5 "2019-04-08T20:41:51Z")

</div>

I would like to fix the error, if I only knew how.  
I followed the ckeditor instructions right from [https://rubygems.org/](https://rubygems.org/)

Maybe I should remove ckeditor totally.

---

<div class="post-metadata">

**Author:** ![merlin2049er](https://metaruby.com/user_avatar/metaruby.com/merlin2049er/32/1168_2.png) [@merlin2049er](https://metaruby.com/u/merlin2049er)\
**Post date:** [April 9, 2019, 1:19pm UTC](https://metaruby.com/t/jquery-and-rails/2221/6 "2019-04-09T13:19:33Z")

</div>

I removed ckeditor from my app, and got the dropdown hover to work (when it loads )  
unfortunately doesn’t work on other pages, I’ve got to see how it’s loaded.
