Dwight Watson

Joined

1,020 Experience
10 Lessons Completed
0 Questions Solved

Activity

Posted in How to Test Background Jobs with Active Job Discussion

Worth noting you can just pass the person variable into the job rather than having to pass in person_id and then look it up yourself. It'll use GlobaIID under the hood to automatically look up the model for you when the job is running.

Posted in How to use Hotwire in Rails Discussion

It seems strange to me that Turbo has the same problem out of the box that Turbolinks has when it comes to validation errors. Turbo takes over your forms by default and doesn't render a HTML response unless you use a Turbo Frame (judging from this video). So a standard Rails scaffold won't work with form errors straight away?