Posts (Page 3)
Knowing the exact time you queued up a background job is handy, here is how to get it in Ruby on Rails ActiveJob.
Make AJAX calls using Rails.ajax by including UJS into your Stimulus controller files.
I18n is a great way to quickly translate your app, but it's also a great way to tidy up your code.
Strategies for name spacing Active Job queues & class names.
Invalid factories are the worst. Here is a script I normally drop into my rails projects to help spot them.
Fix that pesky "Serving static assets with an efficient cache policy" PageSpeed suggestion.
My tests were feeling very slow in Heroku CI, I got a 2x speedup by changing one line of code.
I like to work offline, this documents my current setup & how I'm using puma-dev to make it effortless.
Bootstrap fires events via jQuery, which doesn't play to nicely with Stimulus. Here is how to make them play nicely.
How to provide real-time updates to a user in Rails 6, without having to reload the page.