Ruby on Rails Thursday, June 22, 2017

I've started to use wicked_pdf and it works fine.  However, when I generate a PDF files, usually the CPU will get to ~80+% during the generation of the PDF by the wicked_pdf gem.  What's the proper way of handling this in my application?  I've asked around on IRC chat, stack overflow, etc, but I haven't been able to acquire a good answer.  People have told me to use Sidekiq, which I have, but this won't resolve my CPU issue unless I've put the job processes onto another machine it would seem.  Is there another way of handling this using my one server?

If it's helpful here is the stack overflow question that I posted about 12 days ago - it has perhaps a little more detail: 

Please let me know if I can provide more details on any aspect of this issue. Thanks!

--
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/283aad1e-6be4-46ab-af8c-44425002f547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, June 21, 2017

Dear All,

Just to confirm the subject, since I am new to Rails 5 (coming from Rails 4)....

The scaffold for controllers generates test cases that derive from "ActionDispatch::IntegrationTest", which makes the controller tests 
being, in fact, integration tests. Am I right? Basically, I understand that Rails 5 favours integration tests over old style controller unit tests.
Correct?

It's awesome if it does, btw.

Best

Pano

--
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/bfed0e13-0565-42f3-9ca9-57b0a8d91948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

> On Jun 21, 2017, at 3:52 AM, fugee ohu <fugee279@gmail.com> wrote:
>
> How do I give new.js.erb the right element name
> $('#comment_post)click.(function(){
> In this line there's no id number

I think you may have missed a few bits of my reply. We are not observing a click any more. Everything is out of the jQuery pool, and fully into the RJS pool. If you're viewing this in the Google Groups (Web) view, you may need to expand all of the little ... ellipses in order to see all of my threaded replies.

Walter

--
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/C456D1E6-2B3A-4316-AD3A-CC3A3055EBB3%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.