Re: jquery drop down hover

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/864f76ee-b76b-4ff5-8c02-c2ec9628279e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Brandon McClelland
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADuEqHKiEH_ZCgCKgNd1JRGOeLdjZE6FwgVNG2SfZA_SjtfBvg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="P4PP3m4lAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">JGu...@...> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P4PP3m4lAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="P4PP3m4lAwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

David Merrick
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZVZ6-oc5Op9dXMkAU%2BwR2xNbEpoRcd-%2Bz-u%3DRsF%2BAjXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    src="https://code.jquery.com/jquery-3.3.1.min.js"
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="VTnFJ91dBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">JGu...@...> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="VTnFJ91dBAAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" rel="nofollow" target="_blank" gdf-obfuscated-mailto="VTnFJ91dBAAJ" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Jake Niemiec
What version of Rails do you use?

On Tue, Apr 2, 2019 at 3:54 PM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALn2xuBc0CxyPocVetBCvTh%2BL-kM%2BnpHHcyKJnvYWbTD795bKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

David Merrick
In reply to this post by Joe Guerra
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

TutorInvercargill


Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Brandon McClelland
It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time. 

In the Gemfile for the main Rails app I support, we have lines for 
gem 'jquery-rails'
gem 'jquery-ui-rails'
and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery. 

If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version. 

On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Dave Merrick

TutorInvercargill


Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADuEqHLKEBt7w0nEaBJQksj-P2hadsMZJRW%2B7iVV4mLFH4S7Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
I have the following...

gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'

and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1) 

my gem.lock file is ok too.

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1)


Is there any way in the browser console (or debugger to figure out what's loading and when?)  

I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.



On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time. 

In the Gemfile for the main Rails app I support, we have lines for 
gem 'jquery-rails'
gem 'jquery-ui-rails'
and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery. 

If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version. 

On Tue, Apr 2, 2019 at 4:24 PM David Merrick <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">merri...@...> wrote:
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">JGu...@...> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    src="<a href="https://code.jquery.com/jquery-3.3.1.min.js" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;">https://code.jquery.com/jquery-3.3.1.min.js"
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Dave Merrick

TutorInvercargill

<a href="http://tutorinvercargill.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;">http://tutorinvercargill.co.nz

Daves Web Designs

Website <a href="http://www.daveswebdesigns.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz

Email <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">merri...@...

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jdxvJNyYBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Jake Niemiec
I asked about the Rails version because these libs are incompatible with Rails 5+ https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827

Rails 5+ uses the webpacker gem to load JS. 

On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
I have the following...

gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'

and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1) 

my gem.lock file is ok too.

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1)


Is there any way in the browser console (or debugger to figure out what's loading and when?)  

I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.



On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time. 

In the Gemfile for the main Rails app I support, we have lines for 
gem 'jquery-rails'
gem 'jquery-ui-rails'
and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery. 

If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version. 

On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].


--
Dave Merrick

TutorInvercargill


Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALn2xuC%2BwmA7LuZacKSrrTynEidTGur0ESTY-pMkkMKo7MzTvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Jake Niemiec
> Is there any way in the browser console (or debugger to figure out what's loading and when?)  


Show the function definition of a registered event listener on any node

On Wed, Apr 3, 2019 at 10:39 AM Jake Niemiec <[hidden email]> wrote:
I asked about the Rails version because these libs are incompatible with Rails 5+ https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827

Rails 5+ uses the webpacker gem to load JS. 

On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
I have the following...

gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'

and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1) 

my gem.lock file is ok too.

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1)


Is there any way in the browser console (or debugger to figure out what's loading and when?)  

I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.



On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time. 

In the Gemfile for the main Rails app I support, we have lines for 
gem 'jquery-rails'
gem 'jquery-ui-rails'
and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery. 

If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version. 

On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].


--
Dave Merrick

TutorInvercargill


Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALn2xuCfeO2RpkyPdY%2B5%2Bd--Md%3DOc6DFejU-Z8h8F-B02_T6Rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
In reply to this post by Jake Niemiec
my rails app is versio 5.0.7.

I did change //= jquery  to //=jquery3 (and it loaded jquery 3.3.1 in the production environment on heroku).  

so that wasn't the issue, it's just that my jquery scripts don't seem to run :( 

On Wednesday, April 3, 2019 at 11:40:38 AM UTC-4, jake wrote:
I asked about the Rails version because these libs are incompatible with Rails 5+ <a href="https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;">https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827

Rails 5+ uses the webpacker gem to load JS. 

On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="kcItGxCdBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">JGu...@...> wrote:
I have the following...

gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'

and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1) 

my gem.lock file is ok too.

jquery-rails (4.3.3)
jquery-ui-rails (6.0.1)


Is there any way in the browser console (or debugger to figure out what's loading and when?)  

I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.



On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time. 

In the Gemfile for the main Rails app I support, we have lines for 
gem 'jquery-rails'
gem 'jquery-ui-rails'
and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery. 

If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version. 

On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
Have you checked your gem file and whats in application.js?

On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
No, that's in the gem file...

I even tried adding the jquery right to the application.erb from the Jquery CND...

<script
    src="<a href="https://code.jquery.com/jquery-3.3.1.min.js" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;">https://code.jquery.com/jquery-3.3.1.min.js"
    integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
    crossorigin="anonymous"></script>

Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).


On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
Make sure you have the gem bootstrap sass could help

On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
ok, here's my application.js

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap-sprockets
//= require ckeditor/config
//= require lightbox
//= require rails.validations
//= require rails.validations.simple_form
//= require_tree .


and here are my javascript files ...

rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
-rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
-rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
-rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
-rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
-rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
-rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
-rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
-rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
-rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
-rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
-rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
-rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
-rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
-rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee




On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets. 

On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
I ran console.log(jQuery.fn.jquery);
(which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production. I would imagine that's what's wrong, now why?



On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
ok, well I guess JQuery is not running on my production site, but seems to load and run locally...


On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(

It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Dave Merrick

TutorInvercargill

<a href="http://tutorinvercargill.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;">http://tutorinvercargill.co.nz

Daves Web Designs

Website <a href="http://www.daveswebdesigns.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz

Email [hidden email]

Ph   03 216 2053

Cell 027 3089 169

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Brandon McClelland
User Support Technician
Steve Jackson Games

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="kcItGxCdBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="kcItGxCdBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Walter Lee Davis

> On Apr 3, 2019, at 8:05 PM, Joe Guerra <[hidden email]> wrote:
>
> my rails app is versio 5.0.7.
>
> I did change //= jquery  to //=jquery3 (and it loaded jquery 3.3.1 in the production environment on heroku).  
>
> so that wasn't the issue, it's just that my jquery scripts don't seem to run :(
>

One thing that I haven't heard about from you is whether they run in production mode anywhere else. Can you try running in production mode on your dev machine?

RAILS_ENV=production rake assets:precompile
RAILS_ENV=production rake db:migrate
rails s production

See if your scripts run okay there. If they do, then check that you are precompiling assets on your production server. (I am pretty sure that a heroku deploy will take care of all that automagically, but I haven't used it in several years, and I may have forgotten.)

If the problem was turbolinks, you would have seen that problem everywhere, in every environment. The usual way to fix that (if it's the reason) is to ensure that your scripts that run in the head of the page are properly listening for the turbolinks events, not page load, because the page load happens exactly once (when your first page loads) -- and never again -- in a turbolinks application. So anywhere you were using $.ready(), you would use $(document).on('turbolinks:load', function(evt){  /* your script here */ }); You can also just put any scripts that need access to the updated body in the very bottom of your layout, just inside the closing </body> tag.

Walter


> On Wednesday, April 3, 2019 at 11:40:38 AM UTC-4, jake wrote:
> I asked about the Rails version because these libs are incompatible with Rails 5+ https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827
>
> Rails 5+ uses the webpacker gem to load JS.
>
> On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
> I have the following...
>
> gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
> gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'
>
> and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
> my gem.lock file is ok too.
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
>
> Is there any way in the browser console (or debugger to figure out what's loading and when?)  
>
> I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.
>
>
>
> On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
> It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time.
>
> In the Gemfile for the main Rails app I support, we have lines for
> gem 'jquery-rails'
> gem 'jquery-ui-rails'
> and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery.
>
> If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version.
>
> On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
> Have you checked your gem file and whats in application.js?
>
> On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
> No, that's in the gem file...
>
> I even tried adding the jquery right to the application.erb from the Jquery CND...
>
> <script
>     src="https://code.jquery.com/jquery-3.3.1.min.js"
>     integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
>     crossorigin="anonymous"></script>
>
> Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).
>
>
> On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
> Make sure you have the gem bootstrap sass could help
>
> On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
> ok, here's my application.js
>
> // This is a manifest file that'll be compiled into application.js, which will include all the files
> // listed below.
> //
> // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
> // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
> //
> // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
> // compiled file.
> //
> // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
> // about supported directives.
> //
> //= require jquery
> //= require jquery_ujs
> //= require turbolinks
> //= require bootstrap-sprockets
> //= require ckeditor/config
> //= require lightbox
> //= require rails.validations
> //= require rails.validations.simple_form
> //= require_tree .
>
>
> and here are my javascript files ...
>
> rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
> -rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
> -rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
> -rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
> drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
> -rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
> -rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
> -rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
> -rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
> -rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
> -rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
> -rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
> -rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee
>
>
>
>
> On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
> If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets.
>
> On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
> I ran console.log(jQuery.fn.jquery);  
>
>
> (which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production.  I would imagine that's what's wrong, now why?
>
>
>
> On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
> ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
>
>
> On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
> I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(
>
> It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> TutorInvercargill
>
> http://tutorinvercargill.co.nz
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz
>
> Email [hidden email]
>
> Ph   03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CC733937-54B5-4E46-B555-11DAB4204601%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
I'll try to run it in production mode.  I guess I'll need to install PostgreSQL on the development machine.

On Wednesday, April 3, 2019 at 8:53:17 PM UTC-4, Walter Lee Davis wrote:

> On Apr 3, 2019, at 8:05 PM, Joe Guerra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ojSHpcnlBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jgu...@...> wrote:
>
> my rails app is versio 5.0.7.
>
> I did change //= jquery  to //=jquery3 (and it loaded jquery 3.3.1 in the production environment on heroku).  
>
> so that wasn't the issue, it's just that my jquery scripts don't seem to run :(
>

One thing that I haven't heard about from you is whether they run in production mode anywhere else. Can you try running in production mode on your dev machine?

RAILS_ENV=production rake assets:precompile
RAILS_ENV=production rake db:migrate
rails s production

See if your scripts run okay there. If they do, then check that you are precompiling assets on your production server. (I am pretty sure that a heroku deploy will take care of all that automagically, but I haven't used it in several years, and I may have forgotten.)

If the problem was turbolinks, you would have seen that problem everywhere, in every environment. The usual way to fix that (if it's the reason) is to ensure that your scripts that run in the head of the page are properly listening for the turbolinks events, not page load, because the page load happens exactly once (when your first page loads) -- and never again -- in a turbolinks application. So anywhere you were using $.ready(), you would use $(document).on('turbolinks:load', function(evt){  /* your script here */ }); You can also just put any scripts that need access to the updated body in the very bottom of your layout, just inside the closing </body> tag.

Walter


> On Wednesday, April 3, 2019 at 11:40:38 AM UTC-4, jake wrote:
> I asked about the Rails version because these libs are incompatible with Rails 5+ <a href="https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;">https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827
>
> Rails 5+ uses the webpacker gem to load JS.
>
> On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
> I have the following...
>
> gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
> gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'
>
> and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
> my gem.lock file is ok too.
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
>
> Is there any way in the browser console (or debugger to figure out what's loading and when?)  
>
> I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.
>
>
>
> On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
> It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time.
>
> In the Gemfile for the main Rails app I support, we have lines for
> gem 'jquery-rails'
> gem 'jquery-ui-rails'
> and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery.
>
> If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version.
>
> On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
> Have you checked your gem file and whats in application.js?
>
> On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
> No, that's in the gem file...
>
> I even tried adding the jquery right to the application.erb from the Jquery CND...
>
> <script
>     src="<a href="https://code.jquery.com/jquery-3.3.1.min.js" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;">https://code.jquery.com/jquery-3.3.1.min.js"
>     integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
>     crossorigin="anonymous"></script>
>
> Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).
>
>
> On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
> Make sure you have the gem bootstrap sass could help
>
> On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
> ok, here's my application.js
>
> // This is a manifest file that'll be compiled into application.js, which will include all the files
> // listed below.
> //
> // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
> // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
> //
> // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
> // compiled file.
> //
> // Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
> // about supported directives.
> //
> //= require jquery
> //= require jquery_ujs
> //= require turbolinks
> //= require bootstrap-sprockets
> //= require ckeditor/config
> //= require lightbox
> //= require rails.validations
> //= require rails.validations.simple_form
> //= require_tree .
>
>
> and here are my javascript files ...
>
> rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
> -rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
> -rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
> -rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
> drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
> -rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
> -rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
> -rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
> -rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
> -rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
> -rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
> -rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
> -rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee
>
>
>
>
> On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
> If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets.
>
> On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
> I ran console.log(jQuery.fn.jquery);  
>
>
> (which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production.  I would imagine that's what's wrong, now why?
>
>
>
> On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
> ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
>
>
> On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
> I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(
>
> It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> TutorInvercargill
>
> <a href="http://tutorinvercargill.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;">http://tutorinvercargill.co.nz
>
> Daves Web Designs
>
> Website <a href="http://www.daveswebdesigns.co.nz" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz
>
> Email [hidden email]
>
> Ph   03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ojSHpcnlBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
> To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ojSHpcnlBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/29dc892d-8ad1-4c35-bc0f-a756dfa18eb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
Ok, I removed all the references to Ckeditor and I got the dropdown hover to work on the inital load.  {which is great}

But, on other pages, the hover doesn't work.  I've got to see exactly how I loaded it up.

On Monday, April 8, 2019 at 10:42:27 AM UTC-4, Joe Guerra wrote:
I'll try to run it in production mode.  I guess I'll need to install PostgreSQL on the development machine.

On Wednesday, April 3, 2019 at 8:53:17 PM UTC-4, Walter Lee Davis wrote:

> On Apr 3, 2019, at 8:05 PM, Joe Guerra <[hidden email]> wrote:
>
> my rails app is versio 5.0.7.
>
> I did change //= jquery  to //=jquery3 (and it loaded jquery 3.3.1 in the production environment on heroku).  
>
> so that wasn't the issue, it's just that my jquery scripts don't seem to run :(
>

One thing that I haven't heard about from you is whether they run in production mode anywhere else. Can you try running in production mode on your dev machine?

RAILS_ENV=production rake assets:precompile
RAILS_ENV=production rake db:migrate
rails s production

See if your scripts run okay there. If they do, then check that you are precompiling assets on your production server. (I am pretty sure that a heroku deploy will take care of all that automagically, but I haven't used it in several years, and I may have forgotten.)

If the problem was turbolinks, you would have seen that problem everywhere, in every environment. The usual way to fix that (if it's the reason) is to ensure that your scripts that run in the head of the page are properly listening for the turbolinks events, not page load, because the page load happens exactly once (when your first page loads) -- and never again -- in a turbolinks application. So anywhere you were using $.ready(), you would use $(document).on('turbolinks:load', function(evt){  /* your script here */ }); You can also just put any scripts that need access to the updated body in the very bottom of your layout, just inside the closing </body> tag.

Walter


> On Wednesday, April 3, 2019 at 11:40:38 AM UTC-4, jake wrote:
> I asked about the Rails version because these libs are incompatible with Rails 5+ <a href="https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;">https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827
>
> Rails 5+ uses the webpacker gem to load JS.
>
> On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
> I have the following...
>
> gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
> gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'
>
> and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
> my gem.lock file is ok too.
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
>
> Is there any way in the browser console (or debugger to figure out what's loading and when?)  
>
> I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.
>
>
>
> On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
> It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time.
>
> In the Gemfile for the main Rails app I support, we have lines for
> gem 'jquery-rails'
> gem 'jquery-ui-rails'
> and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery.
>
> If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version.
>
> On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
> Have you checked your gem file and whats in application.js?
>
> On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
> No, that's in the gem file...
>
> I even tried adding the jquery right to the application.erb from the Jquery CND...
>
> <script
>     src="<a href="https://code.jquery.com/jquery-3.3.1.min.js" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;">https://code.jquery.com/jquery-3.3.1.min.js"
>     integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
>     crossorigin="anonymous"></script>
>
> Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).
>
>
> On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
> Make sure you have the gem bootstrap sass could help
>
> On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
> ok, here's my application.js
>
> // This is a manifest file that'll be compiled into application.js, which will include all the files
> // listed below.
> //
> // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
> // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
> //
> // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
> // compiled file.
> //
> // Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
> // about supported directives.
> //
> //= require jquery
> //= require jquery_ujs
> //= require turbolinks
> //= require bootstrap-sprockets
> //= require ckeditor/config
> //= require lightbox
> //= require rails.validations
> //= require rails.validations.simple_form
> //= require_tree .
>
>
> and here are my javascript files ...
>
> rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
> -rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
> -rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
> -rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
> drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
> -rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
> -rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
> -rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
> -rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
> -rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
> -rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
> -rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
> -rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee
>
>
>
>
> On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
> If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets.
>
> On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
> I ran console.log(jQuery.fn.jquery);  
>
>
> (which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production.  I would imagine that's what's wrong, now why?
>
>
>
> On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
> ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
>
>
> On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
> I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(
>
> It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> TutorInvercargill
>
> <a href="http://tutorinvercargill.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;">http://tutorinvercargill.co.nz
>
> Daves Web Designs
>
> Website <a href="http://www.daveswebdesigns.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz
>
> Email [hidden email]
>
> Ph   03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/535a3b16-94a3-441f-94fc-1d9e1266d34f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: jquery drop down hover

Joe Guerra
I even removed the dropdown hover jquery scripts.  I don't believe they work in mobile (responsive) mode.  lol



On Tuesday, April 9, 2019 at 9:17:56 AM UTC-4, Joe Guerra wrote:
Ok, I removed all the references to Ckeditor and I got the dropdown hover to work on the inital load.  {which is great}

But, on other pages, the hover doesn't work.  I've got to see exactly how I loaded it up.

On Monday, April 8, 2019 at 10:42:27 AM UTC-4, Joe Guerra wrote:
I'll try to run it in production mode.  I guess I'll need to install PostgreSQL on the development machine.

On Wednesday, April 3, 2019 at 8:53:17 PM UTC-4, Walter Lee Davis wrote:

> On Apr 3, 2019, at 8:05 PM, Joe Guerra <[hidden email]> wrote:
>
> my rails app is versio 5.0.7.
>
> I did change //= jquery  to //=jquery3 (and it loaded jquery 3.3.1 in the production environment on heroku).  
>
> so that wasn't the issue, it's just that my jquery scripts don't seem to run :(
>

One thing that I haven't heard about from you is whether they run in production mode anywhere else. Can you try running in production mode on your dev machine?

RAILS_ENV=production rake assets:precompile
RAILS_ENV=production rake db:migrate
rails s production

See if your scripts run okay there. If they do, then check that you are precompiling assets on your production server. (I am pretty sure that a heroku deploy will take care of all that automagically, but I haven't used it in several years, and I may have forgotten.)

If the problem was turbolinks, you would have seen that problem everywhere, in every environment. The usual way to fix that (if it's the reason) is to ensure that your scripts that run in the head of the page are properly listening for the turbolinks events, not page load, because the page load happens exactly once (when your first page loads) -- and never again -- in a turbolinks application. So anywhere you were using $.ready(), you would use $(document).on('turbolinks:load', function(evt){  /* your script here */ }); You can also just put any scripts that need access to the updated body in the very bottom of your layout, just inside the closing </body> tag.

Walter


> On Wednesday, April 3, 2019 at 11:40:38 AM UTC-4, jake wrote:
> I asked about the Rails version because these libs are incompatible with Rails 5+ <a href="https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjquery-ui-rails%2Fjquery-ui-rails%2Fissues%2F124%23issuecomment-339689827\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEDoBw7mb7jgomvVaHTFUtvtxUndw&#39;;return true;">https://github.com/jquery-ui-rails/jquery-ui-rails/issues/124#issuecomment-339689827
>
> Rails 5+ uses the webpacker gem to load JS.
>
> On Wed, Apr 3, 2019 at 10:25 AM Joe Guerra <[hidden email]> wrote:
> I have the following...
>
> gem 'jquery-rails', '~> 4.3', '>= 4.3.1'
> gem 'jquery-ui-rails', '~> 6.0', '>= 6.0.1'
>
> and I've looked at my heroku console, and did a gem list, it says I have the latest jquery stuff...
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
> my gem.lock file is ok too.
>
> jquery-rails (4.3.3)
> jquery-ui-rails (6.0.1)
>
>
> Is there any way in the browser console (or debugger to figure out what's loading and when?)  
>
> I feel it's related to turbolinks again, lol, always seems to be an issue with turbolinks.
>
>
>
> On Wednesday, April 3, 2019 at 10:23:37 AM UTC-4, Brandon McClelland wrote:
> It sounds to me like something isn't nailed down to a specific version of jQuery so your latest dev builds just go grab whatever latest version they can find but your Production machine hasn't had to do this process in some time.
>
> In the Gemfile for the main Rails app I support, we have lines for
> gem 'jquery-rails'
> gem 'jquery-ui-rails'
> and this is what actually prepares the server running the app with some version of jQuery. You probably have something similar and that gem might need to be updated on your production server (or specified more narrowly in your Gemfile so your dev builds grab older versions of jQuery). You can check the Gemfile.lock for specific version ranges of whatever gem is responsible for your jQuery.
>
> If it's not a Gem that does this then you need to figure out how you got jQuery onto your production server, how it gets there on your dev machine builds, and how to stop your dev builds from grabbing a different version.
>
> On Tue, Apr 2, 2019 at 4:24 PM David Merrick <[hidden email]> wrote:
> Have you checked your gem file and whats in application.js?
>
> On Wed, Apr 3, 2019 at 9:54 AM Joe Guerra <[hidden email]> wrote:
> No, that's in the gem file...
>
> I even tried adding the jquery right to the application.erb from the Jquery CND...
>
> <script
>     src="<a href="https://code.jquery.com/jquery-3.3.1.min.js" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fcode.jquery.com%2Fjquery-3.3.1.min.js\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETNYlvf77RFexwX3dVqN5Fya0QhQ&#39;;return true;">https://code.jquery.com/jquery-3.3.1.min.js"
>     integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
>     crossorigin="anonymous"></script>
>
> Still loads 1.12.4, no idea where it's getting it from.  (or why 3.3.1 isn't loading).
>
>
> On Tuesday, April 2, 2019 at 4:22:30 PM UTC-4, David Merrick wrote:
> Make sure you have the gem bootstrap sass could help
>
> On Wed, 3 Apr 2019 9:03 AM Joe Guerra <[hidden email]> wrote:
> ok, here's my application.js
>
> // This is a manifest file that'll be compiled into application.js, which will include all the files
> // listed below.
> //
> // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
> // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
> //
> // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
> // compiled file.
> //
> // Read Sprockets README (<a href="https://github.com/rails/sprockets#sprockets-directives" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Frails%2Fsprockets%23sprockets-directives\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFoQEbIweNNSNVyLqcWjOxJNONsdw&#39;;return true;">https://github.com/rails/sprockets#sprockets-directives) for details
> // about supported directives.
> //
> //= require jquery
> //= require jquery_ujs
> //= require turbolinks
> //= require bootstrap-sprockets
> //= require ckeditor/config
> //= require lightbox
> //= require rails.validations
> //= require rails.validations.simple_form
> //= require_tree .
>
>
> and here are my javascript files ...
>
> rw-r--r-- 1 joe joe    814 Apr  2 15:40 application.js
> -rw-r--r-- 1 joe joe   9353 Nov  6 19:39 bootstrap-dropdownhover.js
> -rw-r--r-- 1 joe joe   6787 Nov  6 19:39 bootstrap-dropdownhover.min.js
> -rw-r--r-- 1 joe joe   5425 Aug  9  2018 bootstrap-hover-dropdown.old
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 carts.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 categories.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 category.coffee
> drwxr-xr-x 2 joe joe   4096 Aug  9  2018 ckeditor
> -rw-r--r-- 1 joe joe    211 Oct 25 10:14 invoicing.coffee
> -rw-rw-r-- 1 joe joe  86927 Mar 29 14:52 jquery-3.3.1.min.js
> -rw-r--r-- 1 joe joe 253669 Aug  9  2018 jquery-ui.min.js
> -rw-r--r-- 1 joe joe     45 Aug  9  2018 js.coffee_old
> -rwxr-xr-x 1 joe joe  18410 Aug  9  2018 lightbox.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 notifications.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 pages.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 photos.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 products.coffee
> -rw-r--r-- 1 joe joe  22281 Nov  1 11:38 rails.validations.js
> -rw-r--r-- 1 joe joe   1831 Nov  1 11:38 rails.validations.simple_form.bootstrap4.js
> -rw-r--r-- 1 joe joe   1912 Nov  1 11:38 rails.validations.simple_form.js
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 transactions.coffee
> -rw-r--r-- 1 joe joe    211 Aug  9  2018 users.coffee
>
>
>
>
> On Friday, March 29, 2019 at 4:57:09 PM UTC-4, Brandon McClelland wrote:
> If your production server is serving JQuery make sure it's the correct version on that server. If source is from somewhere else make sure the Production server's code has the correct URL and double check your load order for all JS assets.
>
> On Fri, Mar 29, 2019 at 3:31 PM Joe Guerra <[hidden email]> wrote:
> I ran console.log(jQuery.fn.jquery);  
>
>
> (which checked the jquery version in the browsers console) and 3.3.1 on the development, 1.12.4 on the production.  I would imagine that's what's wrong, now why?
>
>
>
> On Friday, March 29, 2019 at 4:04:01 PM UTC-4, Joe Guerra wrote:
> ok, well I guess JQuery is not running on my production site, but seems to load and run locally...
>
>
> On Friday, March 29, 2019 at 3:56:29 PM UTC-4, Joe Guerra wrote:
> I got this dropdown hover script working on my local pc, unfortunately when push it to github and build it on heroku it doesn't work :(
>
> It's not a big deal, but it seems odd that's all.    I'll be replacing ckeditor with a nice jquery wysiwyg editor (so hoping that works too).
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/4483f5b0-1ca3-4394-bf81-c280a7d5cd8e%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/48dfb0dd-ad39-4214-aa79-f79cac5480e9%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/d8979224-ceb6-49ee-b16d-5750fd94f387%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Dave Merrick
>
> TutorInvercargill
>
> <a href="http://tutorinvercargill.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftutorinvercargill.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBIAZZiO5q8Pw4b9OG-z7QG3C5cg&#39;;return true;">http://tutorinvercargill.co.nz
>
> Daves Web Designs
>
> Website <a href="http://www.daveswebdesigns.co.nz" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.daveswebdesigns.co.nz\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGm3yB5Eg6LFoQK4gg_gqwLmv-Nyg&#39;;return true;">http://www.daveswebdesigns.co.nz
>
> Email [hidden email]
>
> Ph   03 216 2053
>
> Cell 027 3089 169
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZAg%3D4pzvH95bbxZU3dgq3KX60MwT1V3HV7CrCcvJ1RdA%40mail.gmail.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
>
> --
> Brandon McClelland
> User Support Technician
> Steve Jackson Games
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/72a6f5bd-af25-4a76-a3ed-8a95686196bd%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> To post to this group, send email to [hidden email].
> To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/5e2e4777-0d27-4326-8a69-f507b19d8cfb%40googlegroups.com.
> For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2857d713-d09f-4d3c-94d5-e71be0e7aee3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.