Re: [Rails] Heroku and Javascript

2018-07-26 Thread David Merrick
Thanks On Fri, Jul 27, 2018 at 9:56 AM, Walter Lee Davis wrote: > Sure. In the main application.html.erb of your site, you should see this > line somewhere in the : > > <%= javascript_include_tag 'application', 'data-turbolinks-track': > 'reload' %> > > If you don't, then that's because you

Re: [Rails] Heroku and Javascript

2018-07-26 Thread Walter Lee Davis
Sure. In the main application.html.erb of your site, you should see this line somewhere in the : <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> If you don't, then that's because you moved it into a partial (called rails_defaults, maybe -- that's what I

Re: [Rails] Heroku and Javascript

2018-07-26 Thread David Merrick
Are you to give me an example of this please. javascript_include_tag helper On Fri, Jul 27, 2018 at 1:21 AM, Walter Lee Davis wrote: > > > On Jul 26, 2018, at 1:43 AM, David Merrick wrote: > > > > Got some issues not sure how to fix. > > > > My application.html.erb in Production on local

Re: [Rails] Heroku and Javascript

2018-07-26 Thread David Merrick
Thanks Walter for the help On Fri, Jul 27, 2018 at 1:21 AM, Walter Lee Davis wrote: > > > On Jul 26, 2018, at 1:43 AM, David Merrick wrote: > > > > Got some issues not sure how to fix. > > > > My application.html.erb in Production on local system > > > > Has the following code. Comes up with

Re: [Rails] Heroku and Javascript

2018-07-26 Thread Walter Lee Davis
> On Jul 26, 2018, at 1:43 AM, David Merrick wrote: > > Got some issues not sure how to fix. > > My application.html.erb in Production on local system > > Has the following code. Comes up with the error '(index):39 Uncaught > ReferenceError: play is not defined at onload ((index):39)" >

Re: [Rails] Heroku and Javascript

2018-07-25 Thread David Merrick
The play() problem is resolved once I login and go to the Blackjack page. The problem with Heroku not finding the javasripts pages is not resolved although this problem doesn't exist when running on the local system. Cheers Dave On Thu, Jul 26, 2018 at 4:42 PM, Eric Jesse Knutsen wrote: >

Re: [Rails] Heroku and Javascript

2018-07-25 Thread David Merrick
Got some issues not sure how to fix. My application.html.erb in Production on local system Has the following code. Comes up with the error '(index):39 Uncaught ReferenceError: play is not defined at onload ((index):39)" <%= full_title(yield(:title)) %> <%= render

RE: [Rails] Heroku and Javascript

2018-07-25 Thread Eric Jesse Knutsen
Anything in browser javascript console? Is anything not being served properly? And, dumb question time but we all have these kind of moments, did you remember to precompile, and are all your JS libraries set to have pointers to the compiled locations of assets? Cheers, Jess From: David