This is the SQLite search code example I started with for re-implementing search in PhrontPage.
Quick Thoughts...
Rails’ Partial Features You (didn’t) Know
Partials have been an integral part of Rails. They are conceptually simple to understand, but they pack quite a few smart and lesser known features you might not know about. Let’s look at all of them!
Keynote
A presenter is an object that encapsulates view logic. Like Rails helpers, presenters help you keep complex logic out of your templates.
This thing has barely seen an update in years but still works just as you would expect. It is likely the closest thing to done in my Gem file.
Kudos for the super helpful error message:
I have a constraint on the route, and I was passing "posts" instead of "posts.
delete "/orphans/:type/:uid", to: "orphans#delete", as: "delete_orphaned_items", constraints: {type: /(post|page)/}
GitHub - bensheldon/activerecord-has_some_of_many
Optimized top-N-per-group Active Record associations using lateral joins
This is the kind of query you write inefficiently just to get it done on every app.
Introduction to Minitest Mocks
Test doubles likes mocks and stubs can help us with isolating code under test with the rest of the system. Here’s how to mock in Minitest.
It hurts my feelings when one flaky system test causes the whole bar to turn red.
A showcase of what is possible with Progressive Web Apps today.
Charlie Munge:
The world isn't driven by greed. It's driven by envy.