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

[Rails] Heroku and Javascript

2018-07-25 Thread David Merrick
I have built a games website in Rails. Runs run on local system. But when deployed to Heroku the Javascript requests either run slow or freeze. Often the whole page freezes. I'm only using one Dyno as I'm still in the testing phase. Heroku doesn't have any suggestions to fix the problem Slug

Re: [Rails] ActiveRecord model name conflicts with with instance method name

2018-07-25 Thread Jason Taylor
Oh wow, even easier an more succinct than I expected the answer to be! Thanks so much for the feedback. On Wednesday, July 25, 2018 at 6:38:05 AM UTC-6, Bruno Oliveira wrote: > > Hi, Jason. You can keep the name. The only difference is that you will > have to change the relationship

Re: [Rails] ActiveRecord model name conflicts with with instance method name

2018-07-25 Thread Bruno Oliveira
Hi, Jason. You can keep the name. The only difference is that you will have to change the relationship indication. belongs_to: my_transaction, class_name: "Transaction", foreign_key: "transaction_id" Em Qua, 25 de jul de 2018 02:44, Jason Taylor escreveu: > Hello all, > > I'm currently working