Ruby on Rails Tuesday, July 31, 2018

On Tue, Jul 31, 2018 at 2:46 PM, Joe Guerra <JGuerra@jginfosys.com> wrote:
> after running bundle update, something doesn't work :(
>
> https://pastebin.com/aqjgKdRi
>
> something wrong with polyamorous rails?

Never heard of it, but the obvious next step is revert that update
and see what happens. If that fixes it, you need to go look at the
changelogs for that gem (at least).

Good luck,

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yD08XTWfVc1255zJYcM1ts48Y1eFJ4xjz5J4gigbXPD5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

after running bundle update, something doesn't work :(

https://pastebin.com/aqjgKdRi

something wrong with polyamorous rails?

On Tuesday, July 31, 2018 at 2:33:01 PM UTC-4, Joe Guerra wrote:
I'm not at home to run it locally.  Not sure what happens, it does run locally (last time I checked).

I will look at it at home.

Thanks,
Joe

On Tuesday, July 31, 2018 at 2:31:24 PM UTC-4, Hassan Schroeder wrote:
On Tue, Jul 31, 2018 at 10:53 AM, Joe Guerra <JGu...@jginfosys.com> wrote:
> It was never problem to build and compile on heroku, not sure what I messed
> up.

1. What did you change since you deployed last?

2. Can you run locally in production mode?

3. Have you tried the suggestion in the error message?

-----> Detecting rake tasks
 !
 !     Could not detect rake tasks
 !     ensure you can run `$ bundle exec rake -P` against your app
 !     and using the production group of your Gemfile.
 !     rake aborted!

If so, what was the result?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f69e6494-773d-4500-9018-ec90676df861%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

What I am trying to do is in my application is add Student Attendance for the day.

What I would like to have is a form that a teacher goes to every morning on their computer or iPad with the list of his/her students and he/she just has a list of option buttons beside each student with the student's attendance for that day. They just tap the option that is correct by each student...

The options will typically be Present, Absent, Half-Day District, Half-Day CTC, Full-Day District...

Has anyone done something like this I can look at the code or do you have suggestions on how I can do this...

I've been googling and watching videos and nothing does what I am looking for...

John Sanderbeck

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ef7e07f6-dd10-4123-9b75-e0e522a3c26b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I'm not at home to run it locally.  Not sure what happens, it does run locally (last time I checked).

I will look at it at home.

Thanks,
Joe

On Tuesday, July 31, 2018 at 2:31:24 PM UTC-4, Hassan Schroeder wrote:
On Tue, Jul 31, 2018 at 10:53 AM, Joe Guerra <JGu...@jginfosys.com> wrote:
> It was never problem to build and compile on heroku, not sure what I messed
> up.

1. What did you change since you deployed last?

2. Can you run locally in production mode?

3. Have you tried the suggestion in the error message?

-----> Detecting rake tasks
 !
 !     Could not detect rake tasks
 !     ensure you can run `$ bundle exec rake -P` against your app
 !     and using the production group of your Gemfile.
 !     rake aborted!

If so, what was the result?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/04e8f0e1-b6a0-48aa-8b9a-51954a85567d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On Tue, Jul 31, 2018 at 10:53 AM, Joe Guerra <JGuerra@jginfosys.com> wrote:
> It was never problem to build and compile on heroku, not sure what I messed
> up.

1. What did you change since you deployed last?

2. Can you run locally in production mode?

3. Have you tried the suggestion in the error message?

-----> Detecting rake tasks
!
! Could not detect rake tasks
! ensure you can run `$ bundle exec rake -P` against your app
! and using the production group of your Gemfile.
! rake aborted!

If so, what was the result?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBq3OUSf_khbObU4cqJ_CQ02ztsd12VeEgExJYMDVCpXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

why don't you install the redmine vm?  do you have virtualbox or vmware workstation?

https://bitnami.com/stack/redmine/virtual-machine

On Saturday, June 30, 2018 at 2:13:14 AM UTC-4, Ayari HoussemEddine wrote:
Hello i am working in my final graduation project.
I need to install Redmine which is developped bu ROR plateforme.
I've installed Redmine and Ruby but when i am trying to install rails i had a problem anyone can help me plzz ???

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/562c6131-f3c5-4e42-ba17-83fc3c8c22cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

It was never problem to build and compile on heroku, not sure what I messed up.  Any help appreciated. 

https://pastebin.com/HmQLdcma

Link is only active for 6 days...

Thanks,
Joe

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6aa2c1e2-6450-4858-874c-8b400b5dddaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Monday, July 30, 2018

Hi everyone,

I am happy to announce that Rails 5.2.1.rc1 has been released.

If no regressions are found, expect the final release on Monday, August 6, 2018.
If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new)
and mention me (@rafaelfranca) on it, so that we can fix it before the final release.

## CHANGES since 5.2.0

To view the changes for each gem, please read the changelogs on GitHub:

* [Action Cable CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/actioncable/CHANGELOG.md)
* [Action Mailer CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/actionmailer/CHANGELOG.md)
* [Action Pack CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/actionpack/CHANGELOG.md)
* [Action View CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/actionview/CHANGELOG.md)
* [Active Job CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/activejob/CHANGELOG.md)
* [Active Model CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/activemodel/CHANGELOG.md)
* [Active Record CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/activerecord/CHANGELOG.md)
* [Active Storage CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/activestorage/CHANGELOG.md)
* [Active Support CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/activesupport/CHANGELOG.md)
* [Railties CHANGELOG](https://github.com/rails/rails/blob/v5.2.1.rc1/railties/CHANGELOG.md)

*Full listing*

To see the full list of changes, [check out all the commits on
GitHub](https://github.com/rails/rails/compare/v5.2.0...v5.2.1.rc1).

## SHA-256

If you'd like to verify that your gem is the same as the one I've uploaded,
please use these SHA-256 hashes.

Here are the checksums for 5.2.1.rc1:

```
$ shasum -a 256 *-5.2.1.rc1.gem
cf26a51b6483ce88c352687207557825b5ce22d45276f7b4f1168ef71275c5bb actioncable-5.2.1.rc1.gem
733f8e2aa203ef83c1bcbc0ffa316b9fafeac8ea5c95dbfc41ec4af440fb8466 actionmailer-5.2.1.rc1.gem
9858e240e67a35fcfed8d87673ec496d3d2bd970d00fd6414d922772bed06460 actionpack-5.2.1.rc1.gem
cf68f757d8d71aee003889d8fd49a9f44d0ed348cd07a3ab34c953310f785565 actionview-5.2.1.rc1.gem
ad4575d404c1339c3782ad55976ab40b123e8217fbebfffc579e56f91b7c9bf1 activejob-5.2.1.rc1.gem
e1ee68dd9a8e659cbc523a1d0972b8fc4344ecab5a85aec7a7280d33a66076a4 activemodel-5.2.1.rc1.gem
e184d5b709e0e8351fa32485f63353272a41505b1dbf30c6034a60be321804b1 activerecord-5.2.1.rc1.gem
04b99f581620933447f10e0e9f8964863994962b3c4580e8c0103b9e3bd5ee18 activestorage-5.2.1.rc1.gem
f19afc75fa8527b850b12c343cd4e94b7d4d81f0de7126b03912db591789e167 activesupport-5.2.1.rc1.gem
78fbe88491b0a68f9fe68d7dd8594e2bc102c1aed99a5c5e8acca87e2ec914e7 rails-5.2.1.rc1.gem
a17f0d61e8da7970c19b98f95196d27115be7603a9badfedccd1329b2daffc93 railties-5.2.1.rc1.gem
```

As always, huge thanks to the many contributors who helped with this release.

Rafael França

Ruby on Rails Sunday, July 29, 2018



On Sunday, July 29, 2018 at 4:14:03 AM UTC-4, Colin Law wrote:
On 29 July 2018 at 03:43, fugee ohu <fuge...@gmail.com> wrote:


On Saturday, July 28, 2018 at 10:43:37 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 15:32, fugee ohu <fuge...@gmail.com> wrote:


On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you?

If you are now seeing the data then no I don't want to see it.  Your original problem is fixed.

Colin


I could read the item description on the page in the browser but couldn't find it searching the source I'm new to using the browser debugging console I never had any reason to use it before So I couldn't find the description I saw on the page in the source so I right clicked on the description and selected inspect This is what I got: 
<li class="property-item" id="product-prop-19204" data-attr="272" data-title="Wireless" data-spm-anchor-id="2114. 12010108.0.i4.7c48412aEPVyt2">
                        <span class="propery-title">Cord Length (m):</span>
                        <span class="propery-des" title="Wireless">Wireless</span>
                    </li>
What can I do with this?

If you can see the description in the browser but not in the source then as a web developer I am sure you can think of at least a couple of ways that might happen.

Colin


It's a new subject for me I found a lot of window.runParams statements within script containers so I guess I'm gonna make those ajax requests myself from my script

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ea205a41-465c-42c6-bf0a-7222fa85d2c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 29 July 2018 at 03:43, fugee ohu <fugee279@gmail.com> wrote:


On Saturday, July 28, 2018 at 10:43:37 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 15:32, fugee ohu <fuge...@gmail.com> wrote:


On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you?

If you are now seeing the data then no I don't want to see it.  Your original problem is fixed.

Colin


I could read the item description on the page in the browser but couldn't find it searching the source I'm new to using the browser debugging console I never had any reason to use it before So I couldn't find the description I saw on the page in the source so I right clicked on the description and selected inspect This is what I got: 
<li class="property-item" id="product-prop-19204" data-attr="272" data-title="Wireless" data-spm-anchor-id="2114.12010108.0.i4.7c48412aEPVyt2">
                        <span class="propery-title">Cord Length (m):</span>
                        <span class="propery-des" title="Wireless">Wireless</span>
                    </li>
What can I do with this?

If you can see the description in the browser but not in the source then as a web developer I am sure you can think of at least a couple of ways that might happen.

Colin

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtFmOHPoPUh%2Bk8sGrmO19cUxAOxHuUixmfsRHG708bs9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Saturday, July 28, 2018



On Saturday, July 28, 2018 at 10:43:37 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 15:32, fugee ohu <fuge...@gmail.com> wrote:


On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you?

If you are now seeing the data then no I don't want to see it.  Your original problem is fixed.

Colin


I could read the item description on the page in the browser but couldn't find it searching the source I'm new to using the browser debugging console I never had any reason to use it before So I couldn't find the description I saw on the page in the source so I right clicked on the description and selected inspect This is what I got: 
<li class="property-item" id="product-prop-19204" data-attr="272" data-title="Wireless" data-spm-anchor-id="2114.12010108.0.i4.7c48412aEPVyt2">
                        <span class="propery-title">Cord Length (m):</span>
                        <span class="propery-des" title="Wireless">Wireless</span>
                    </li>
What can I do with this?

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a73bb316-d26e-42c1-8abe-3dc1585f2fc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

On 28 July 2018 at 15:32, fugee ohu <fugee279@gmail.com> wrote:


On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you?

If you are now seeing the data then no I don't want to see it.  Your original problem is fixed.

Colin

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuLHdryZk_hsK3fh7H%3DaG_KEjDHcSeaPav%2BAdAmvcheiA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


 https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20180728063558&SearchText=home+robot

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5610cee7-fe78-4d08-a100-11347f34b911%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails



On Saturday, July 28, 2018 at 2:53:59 AM UTC-4, Colin Law wrote:
On 28 July 2018 at 00:15, fugee ohu <fuge...@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin


Thanks Colin Made progress so now I have the <ul> list i want in an object I named ul Not sure how I'm gonna proceed My goal is to import to database tables  It's a few related tables instead of just one products table I don't think you still wanna see all that html do you? I can give you specific selectors, counts, text, etc

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/703241e0-3d4d-4502-bffd-8e87b207b84a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Friday, July 27, 2018

On 28 July 2018 at 00:15, fugee ohu <fugee279@gmail.com> wrote:
how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

Give us an example of a page you are scraping and an element you can't find.

Colin

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtqZHcSz%3DtfnzwrJrwUGbj%2Bed28262nSkL%3DhJ8yC1h%3D5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

how do i webscrape aliexpress? i learned how to get a document object class Nokogiri::HTML containing the full html but there's no tables only ul and li selectors and i'm having trouble with that

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c02eace0-e2f0-4c44-b00d-791239230388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

How can I webscrape aliexpress i got a Nokogiri::HTML object and I can find different css selectors I didn't find any ta

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ca777a8f-ef35-4165-b02d-11856c93b1f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

how can i web

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d9aa2c01-0248-4d8e-8463-ec436b4ffbf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Position 1 – 
 
Please allow me to present a Full Time Direct Hire opportunity for a Team Lead Developer role with one of the established start-ups with astrong funding, partially backed by Amazon. They are based out of Kennesaw, GA and want to on-board someone soon to start a new team. Are you looking for better opportunities in the market?
 
Responsibilities
•             Experience at launching a new web and mobile product from initial development to release and through scale.
•             Experience as a lead developer, including architecture, performance and scalability, security and hands-on delivery of functionality.
•             Experience managing a team of 3-10 developers, including front-end, back-end and mobile specialties.
•             Experience migrating from conventional deployments to continuous integration / continuous deployment.
•             Experience using Cloud (AWS) infrastructure with frugality.
 
Client's Tech and Ops Stack
•             Ruby on Rails
•             GitHub
•             React Native
•             React Web
•             PostgreSQL
•             Amazon AWS deployment
•             Jira
•             Mailchimp
 
 
Position 2  
 
Where our client believes in the power of stories, and they believe that when storytelling is both artful and scientific, businesses establish deeper relationships with their customers. Their vision is to be the content marketing platform marketer's use to power customer experiences. As a Full Stack Developer on their team, you'll join a small and talented product and engineering team dedicated to building tools that empower marketers to grow their businesses in the outdoor and travel industries and beyond.
 
They are willing to hire Full Stack Developer in Atlanta, GA
 
This might be a great opportunity for you if you:
•        Know Rails like the back of your hand
•        Like to be challenged to work across the tech stack
•        Design and build systems to be observable, resilient, and scalable
•        Have experience building SaaS products
 
The tools we use include:
•        Rails/Ruby
•        Chef
•        AWS
•        ReactJS
•        Postgres
•        Redshift
•        Webpack
•        Nginx
 
You probably don't know all of these. You should be strong in a few, and interested in learning more about the rest of them.
 
If this is something that may be of your interest, please respond to my Email- aamil.saiyed@collabera.com  with your most updated resume along with the best time to get on a call to discuss this in length.
 
If not, either way, great to connect On LinkedIN: https://www.linkedin.com/in/aamilsaiyed/ !

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2d5fb829-8f10-4717-ae3a-948e5bdecb1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Thursday, July 26, 2018

Thanks

On Fri, Jul 27, 2018 at 9:56 AM, Walter Lee Davis <waltd@wdstudio.com> wrote:
Sure. In the main application.html.erb of your site, you should see this line somewhere in the <head>:

    <%= 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 recall from your first post).

You can use any script name you like here, application is the default, where by convention, all of your other scripts are "rolled up". That's done by the file /app/javascripts/application.js, which culminates in the line

//= require tree .

which slurps up all the javascript files in the /app/assets/javascripts directory that are not already loaded by previous require directives in application.js, and concatenates them into the one published file.

A generic (rails new ...) generated site will have all of this done for you, so I recommend you try building a new stunt site from scratch and see what gets built for you. Try building a new app, then inside that, using the scaffold generator to make a couple or more models:

rails new test_blog
cd test_blog
rails g scaffold Post title body:text slug
rails g scaffold Author name email
rails g migration add_author_to_posts author:references

rake db:migrate
rails s

navigate to http://localhost:3000/posts

Everything you see will be run through the asset pipeline, although the full concatenation will not be there in development mode.

If you add some JS to the app/assets/javascripts/authors.js and posts.js, and refresh your browser, you should see those scripts appear in your browser's Developer tools when you inspect the DOM. In development, each file will be listed separately, as coming from /javascripts/posts-asdfsdfsdsdfsdafsdfsdafsd.js or similar (32 character hash, which is the MD5 of the file itself, is appended to the filename).

To see how this would work in production, you would first run:

rake db:create RAILS_ENV=production
rake db:migrate RAILS_ENV=production
rake assets:precompile RAILS_EN=production

and then when you started the dev server with the production version:

rails s production -p 3000

you would see all of the JS and CSS concatenated into application.js and application.css respectively. None of the individual files would appear at all. The whole thing will be minified and concatenated.

If you require some files in order in application.js, then only the files you don't require by name would be auto-loaded by the greedy require_tree operator. You might do this if you needed to specify that jQuery load before something else that needs it, for example. But otherwise, the files will be concatenated in alphabetical order and then minified and gzipped into one application-someMD5hashgoeshere.js file. The javascript_include_tag helper knows how to find that file and load it.

Walter

> On Jul 26, 2018, at 5:31 PM, David Merrick <merrickdav@gmail.com> wrote:
>
> 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 <waltd@wdstudio.com> wrote:
>
> > On Jul 26, 2018, at 1:43 AM, David Merrick <merrickdav@gmail.com> 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)"
> >
> > <!DOCTYPE html>
> > <html>
> >   <head>
> >     <title><%= full_title(yield(:title)) %></title>
> >     <meta name="turbolinks-visit-control" content="reload">
> >     <%= render 'layouts/rails_default' %>
>
> I am guessing that the partial in the line above this one is where the regular <%= javascript_include_tag :application %> would live?
>
> >     <%= render 'layouts/shim' %>
> >   </head>
> >   <body onload="play()">
> >     <%= render 'layouts/header' %>
> >     <div class="container">
> >       <% flash.each do |message_type, message| %>
> >         <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
> >       <% end %>
> >       <%= yield %>
> >       <%= render 'layouts/footer' %>
> >       <%= debug(params) if Rails.env.development? %>
> >     </div>
> >   </body>
> > </html>
> >
> > Not sure how to fix that one?
> >
> > In Heroku I get this error 'GET https://morning-caverns-39088.herokuapp.com/assets/blackJack.js 404 (Not Found)' which m,eans it can't find the assets/blackJack.js file
> >
> > My BlackJack.html,erb file is as follows
> >
> > <script type="text/javascript" src="assets/blackJack.js" ></script>
>
> If you have put your scripts in the assets folder, then they have already been concatenated and minified into application.js. Loading a separate script here as a static html reference will fail in any normal Rails production environment. If you want to load it separately, you need to use the javascript_include_tag helper, which will also understand the fingerprint of the file (note that even in development, the URLs to individual resource files end with an MD5 hash of their contents, which is a cache-busting strategy. You don't need to know this directly, you would just use the helper and the correct link would be written out in the rendered HTML.
>
> I recommend you read the Rails Guide about the Asset Pipeline, it covers this and lots more.
>
> One thing I have noticed over the years is that when Rails makes something really difficult, it is often because doing things the easier way will lead you to a better design, or a better performing one. I have fought with the asset pipeline before, but I ended up writing better JS (namespaces, to avoid conflicts between modules) and then loading all of it at once, and letting Turbolinks handle the "go fast" part of the problem for me.
>
> Walter
>
> >
> > <div id = "blackJackgame">
> >       <h2>Playing Black Jack</h2>
> >       <div id = "blackJackcontrols">
> >               <div class ="blackJackdealer"><button class = 'button' >Dealer</button></div>
> >               <div class = "blackJackplayer"><button class = 'button' >Player</button></div>
> >       </div>
> >       
> >       <div id = "blackJackcards">
> >               <div id="blackJackdealersCards">
> >                       <span id = "BD0"></span>
> >                       <span id = "BD1"></span>
> >                       <span id = "BD2"></span>
> >                       <span id = "BD3"></span>
> >                       <span id = "BD4"></span>
> >                       <span id = "BD5"></span>
> >                       <span id = "BD6"></span>
> >                       <span id = "BD7"></span>
> >               </div>
> >
> >               <div id="blackJackplayersCards">
> >                       <span id = "BP0"></span>
> >                       <span id = "BP1"></span>
> >                       <span id = "BP2"></span>
> >                       <span id = "BP3"></span>
> >                       <span id = "BP4"></span>
> >                       <span id = "BP5"></span>
> >                       <span id = "BP6"></span>
> >                       <span id = "BP7"></span>
> >               </div>
> >       </div> 
> > </div>
> >
> >
> > <div id = "blackJackbottomControls">
> >       <div class ="blackJackplayButton"><button  class = 'button'  onclick="blackJackplayAgain()">Play Again</button></div>
> >       <div  id = "blackJackmoneyValue">Players Money is $5000</div>
> >       <div id = "blackJackplayersReturn">Players Card Total is 0</div>
> >       <div id = "blackJackmessagesValue">Messages</div>
> >       <div class="blackJackbeat">
> >               <form name ="subscribe" id="subscribe_frm" action="#">
> >                       <input  class = 'button'   type="button" id = "blackJackbeatenterBeat" name="submit" value="Enter Beat"  onclick="blackJackgetBeat()" />
> >                       <input  type="text"  name="beat" id="blackJackbeatName" />                     
> >               </form>
> >       </div>
> >       <div class = "hitNoHit">
> >               <input  class = 'button' type="button" id = "hit" name="submit" value="Hit"  onclick="hit()" />
> >               <input  class = 'button'  type="button" id = "nohit" name="submit" value="No Hit"  onclick="noHit()" />
> >       </div>
> > </div>
> > <script>
> > function play()
> > {
> >       blackJackshowCardInitialCards();
> >       playGame = true;
> >       return dealerCount,playerCount,playGame
> > }
> > </script>
> >
> > My assets.rb file in config/initializers looks like this
> >
> > # Be sure to restart your server when you modify this file.
> >
> > # Version of your assets, change this if you want to expire all your assets.
> > Rails.application.config.assets.version = '1.0'
> >
> > # Add additional assets to the asset load path.
> > # Rails.application.config.assets.paths << Emoji.images_path
> > # Add Yarn node_modules folder to the asset load path.
> > Rails.application.config.assets.paths << Rails.root.join('node_modules')
> >
> > # Precompile additional assets.
> > # application.js, application.css, and all non-JS/CSS in the app/assets
> > # folder are already added.
> > # Rails.application.config.assets.precompile += %w( admin.js admin.css )
> >
> > Rails.application.config.assets.precompile += %w( game.scss )
> > Rails.application.config.assets.precompile += %w( blackJack.js )
> > Rails.application.config.assets.precompile += %w( poker.js )
> > Rails.application.config.assets.precompile += %w( yaghtzee.js )
> > Rails.application.config.assets.precompile += %w( mastermind.js )
> >
> > My _rails_default.html.erb file in views/layouts looks like this
> >
> > <%= csrf_meta_tags %>
> > <%= stylesheet_link_tag    'application', media: 'all','data-turbolinks-track': 'reload' %>
> > <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
> >
> > If you can find why the function play() can't be seen and why the javascript files in Heroku can't be find that would be great.
> >
> > i put the links like <script type="text/javascript" src="assets/blackJack.js" ></script> for  BlackJack.html,erb in  BlackJack.html,erb because some function names were too similar causing issues.
> >
> > Cheers Dave
> >
> >
> > On Thu, Jul 26, 2018 at 4:42 PM, Eric Jesse Knutsen <dracorna@gmail.com> wrote:
> > 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 Merrick
> > Sent: Thursday, July 26, 2018 12:24 AM
> > To: Ruby on Rails: Talk
> > Subject: [Rails] Heroku and Javascript
> >
> > 
> >
> > 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 size on Heroku is 36.5. MiB of 500 MiB
> >
> > 
> >
> > Cheers Dave
> >
> > --
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a26ccf22-ab23-4a07-a354-cd861ae9aa37%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> > 
> >
> >
> >       Virus-free. www.avast.com
> >
> > --
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5b595131.1c69fb81.a9594.1cec%40mx.google.com.
> >
> > For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> > --
> > Dave Merrick
> >
> > Daves Web Designs
> >
> > Website http://www.daveswebdesigns.co.nz
> >
> > Email merrickdav@gmail.com
> >
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaFV99bRhTyvS5XaYgUoNMA4aYGdgyR-WPebo8CxxnQJg%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/960F3ED5-6812-4B27-8EAA-F3F6199E6C8B%40wdstudio.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Dave Merrick
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz
>
> Email merrickdav@gmail.com
>
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaykXB3ukFXYqwhyW%3DgP59Bxh31Xf1RQa8K%3DJ%2BwhQpD%3Dg%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/99647338-C3AF-45F2-8975-2525A72DFB1D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.



--
Dave Merrick

Daves Web Designs

Website http://www.daveswebdesigns.co.nz

Email merrickdav@gmail.com

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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZanC4ZS2CMY07KaHoM5o6miHrQq6SjhzyZ%3DExtE3m4iw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

Sure. In the main application.html.erb of your site, you should see this line somewhere in the <head>:

<%= 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 recall from your first post).

You can use any script name you like here, application is the default, where by convention, all of your other scripts are "rolled up". That's done by the file /app/javascripts/application.js, which culminates in the line

//= require tree .

which slurps up all the javascript files in the /app/assets/javascripts directory that are not already loaded by previous require directives in application.js, and concatenates them into the one published file.

A generic (rails new ...) generated site will have all of this done for you, so I recommend you try building a new stunt site from scratch and see what gets built for you. Try building a new app, then inside that, using the scaffold generator to make a couple or more models:

rails new test_blog
cd test_blog
rails g scaffold Post title body:text slug
rails g scaffold Author name email
rails g migration add_author_to_posts author:references

rake db:migrate
rails s

navigate to http://localhost:3000/posts

Everything you see will be run through the asset pipeline, although the full concatenation will not be there in development mode.

If you add some JS to the app/assets/javascripts/authors.js and posts.js, and refresh your browser, you should see those scripts appear in your browser's Developer tools when you inspect the DOM. In development, each file will be listed separately, as coming from /javascripts/posts-asdfsdfsdsdfsdafsdfsdafsd.js or similar (32 character hash, which is the MD5 of the file itself, is appended to the filename).

To see how this would work in production, you would first run:

rake db:create RAILS_ENV=production
rake db:migrate RAILS_ENV=production
rake assets:precompile RAILS_EN=production

and then when you started the dev server with the production version:

rails s production -p 3000

you would see all of the JS and CSS concatenated into application.js and application.css respectively. None of the individual files would appear at all. The whole thing will be minified and concatenated.

If you require some files in order in application.js, then only the files you don't require by name would be auto-loaded by the greedy require_tree operator. You might do this if you needed to specify that jQuery load before something else that needs it, for example. But otherwise, the files will be concatenated in alphabetical order and then minified and gzipped into one application-someMD5hashgoeshere.js file. The javascript_include_tag helper knows how to find that file and load it.

Walter

> On Jul 26, 2018, at 5:31 PM, David Merrick <merrickdav@gmail.com> wrote:
>
> 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 <waltd@wdstudio.com> wrote:
>
> > On Jul 26, 2018, at 1:43 AM, David Merrick <merrickdav@gmail.com> 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)"
> >
> > <!DOCTYPE html>
> > <html>
> > <head>
> > <title><%= full_title(yield(:title)) %></title>
> > <meta name="turbolinks-visit-control" content="reload">
> > <%= render 'layouts/rails_default' %>
>
> I am guessing that the partial in the line above this one is where the regular <%= javascript_include_tag :application %> would live?
>
> > <%= render 'layouts/shim' %>
> > </head>
> > <body onload="play()">
> > <%= render 'layouts/header' %>
> > <div class="container">
> > <% flash.each do |message_type, message| %>
> > <%= content_tag(:div, message, class: "alert alert-#{message_type}") %>
> > <% end %>
> > <%= yield %>
> > <%= render 'layouts/footer' %>
> > <%= debug(params) if Rails.env.development? %>
> > </div>
> > </body>
> > </html>
> >
> > Not sure how to fix that one?
> >
> > In Heroku I get this error 'GET https://morning-caverns-39088.herokuapp.com/assets/blackJack.js 404 (Not Found)' which m,eans it can't find the assets/blackJack.js file
> >
> > My BlackJack.html,erb file is as follows
> >
> > <script type="text/javascript" src="assets/blackJack.js" ></script>
>
> If you have put your scripts in the assets folder, then they have already been concatenated and minified into application.js. Loading a separate script here as a static html reference will fail in any normal Rails production environment. If you want to load it separately, you need to use the javascript_include_tag helper, which will also understand the fingerprint of the file (note that even in development, the URLs to individual resource files end with an MD5 hash of their contents, which is a cache-busting strategy. You don't need to know this directly, you would just use the helper and the correct link would be written out in the rendered HTML.
>
> I recommend you read the Rails Guide about the Asset Pipeline, it covers this and lots more.
>
> One thing I have noticed over the years is that when Rails makes something really difficult, it is often because doing things the easier way will lead you to a better design, or a better performing one. I have fought with the asset pipeline before, but I ended up writing better JS (namespaces, to avoid conflicts between modules) and then loading all of it at once, and letting Turbolinks handle the "go fast" part of the problem for me.
>
> Walter
>
> >
> > <div id = "blackJackgame">
> > <h2>Playing Black Jack</h2>
> > <div id = "blackJackcontrols">
> > <div class ="blackJackdealer"><button class = 'button' >Dealer</button></div>
> > <div class = "blackJackplayer"><button class = 'button' >Player</button></div>
> > </div>
> >
> > <div id = "blackJackcards">
> > <div id="blackJackdealersCards">
> > <span id = "BD0"></span>
> > <span id = "BD1"></span>
> > <span id = "BD2"></span>
> > <span id = "BD3"></span>
> > <span id = "BD4"></span>
> > <span id = "BD5"></span>
> > <span id = "BD6"></span>
> > <span id = "BD7"></span>
> > </div>
> >
> > <div id="blackJackplayersCards">
> > <span id = "BP0"></span>
> > <span id = "BP1"></span>
> > <span id = "BP2"></span>
> > <span id = "BP3"></span>
> > <span id = "BP4"></span>
> > <span id = "BP5"></span>
> > <span id = "BP6"></span>
> > <span id = "BP7"></span>
> > </div>
> > </div>
> > </div>
> >
> >
> > <div id = "blackJackbottomControls">
> > <div class ="blackJackplayButton"><button class = 'button' onclick="blackJackplayAgain()">Play Again</button></div>
> > <div id = "blackJackmoneyValue">Players Money is $5000</div>
> > <div id = "blackJackplayersReturn">Players Card Total is 0</div>
> > <div id = "blackJackmessagesValue">Messages</div>
> > <div class="blackJackbeat">
> > <form name ="subscribe" id="subscribe_frm" action="#">
> > <input class = 'button' type="button" id = "blackJackbeatenterBeat" name="submit" value="Enter Beat" onclick="blackJackgetBeat()" />
> > <input type="text" name="beat" id="blackJackbeatName" />
> > </form>
> > </div>
> > <div class = "hitNoHit">
> > <input class = 'button' type="button" id = "hit" name="submit" value="Hit" onclick="hit()" />
> > <input class = 'button' type="button" id = "nohit" name="submit" value="No Hit" onclick="noHit()" />
> > </div>
> > </div>
> > <script>
> > function play()
> > {
> > blackJackshowCardInitialCards();
> > playGame = true;
> > return dealerCount,playerCount,playGame
> > }
> > </script>
> >
> > My assets.rb file in config/initializers looks like this
> >
> > # Be sure to restart your server when you modify this file.
> >
> > # Version of your assets, change this if you want to expire all your assets.
> > Rails.application.config.assets.version = '1.0'
> >
> > # Add additional assets to the asset load path.
> > # Rails.application.config.assets.paths << Emoji.images_path
> > # Add Yarn node_modules folder to the asset load path.
> > Rails.application.config.assets.paths << Rails.root.join('node_modules')
> >
> > # Precompile additional assets.
> > # application.js, application.css, and all non-JS/CSS in the app/assets
> > # folder are already added.
> > # Rails.application.config.assets.precompile += %w( admin.js admin.css )
> >
> > Rails.application.config.assets.precompile += %w( game.scss )
> > Rails.application.config.assets.precompile += %w( blackJack.js )
> > Rails.application.config.assets.precompile += %w( poker.js )
> > Rails.application.config.assets.precompile += %w( yaghtzee.js )
> > Rails.application.config.assets.precompile += %w( mastermind.js )
> >
> > My _rails_default.html.erb file in views/layouts looks like this
> >
> > <%= csrf_meta_tags %>
> > <%= stylesheet_link_tag 'application', media: 'all','data-turbolinks-track': 'reload' %>
> > <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
> >
> > If you can find why the function play() can't be seen and why the javascript files in Heroku can't be find that would be great.
> >
> > i put the links like <script type="text/javascript" src="assets/blackJack.js" ></script> for BlackJack.html,erb in BlackJack.html,erb because some function names were too similar causing issues.
> >
> > Cheers Dave
> >
> >
> > On Thu, Jul 26, 2018 at 4:42 PM, Eric Jesse Knutsen <dracorna@gmail.com> wrote:
> > 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 Merrick
> > Sent: Thursday, July 26, 2018 12:24 AM
> > To: Ruby on Rails: Talk
> > Subject: [Rails] Heroku and Javascript
> >
> >
> >
> > 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 size on Heroku is 36.5. MiB of 500 MiB
> >
> >
> >
> > Cheers Dave
> >
> > --
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a26ccf22-ab23-4a07-a354-cd861ae9aa37%40googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> >
> > Virus-free. www.avast.com
> >
> > --
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5b595131.1c69fb81.a9594.1cec%40mx.google.com.
> >
> > For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> > --
> > Dave Merrick
> >
> > Daves Web Designs
> >
> > Website http://www.daveswebdesigns.co.nz
> >
> > Email merrickdav@gmail.com
> >
> > 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaFV99bRhTyvS5XaYgUoNMA4aYGdgyR-WPebo8CxxnQJg%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/960F3ED5-6812-4B27-8EAA-F3F6199E6C8B%40wdstudio.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Dave Merrick
>
> Daves Web Designs
>
> Website http://www.daveswebdesigns.co.nz
>
> Email merrickdav@gmail.com
>
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKaykXB3ukFXYqwhyW%3DgP59Bxh31Xf1RQa8K%3DJ%2BwhQpD%3Dg%40mail.gmail.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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/99647338-C3AF-45F2-8975-2525A72DFB1D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.