I've learned a few things the hard way. How to properly use Active Record callbacks with Ruby on Rails is one of those things.
How to use a "www" subdomain as your primary domain on a Rails app hosted with Heroku.
Turbolinks is a great idea in theory, but it comes with enough problems to offset its benefits.
Sometimes you need to get to a class that you have deleted or renamed within a migration file. Here's how you do it.
You got yourself into that pickle where you created a migration, migrated, deleted the migration, then tried to rollback. Here's how you get around it!
You can avoid multiple requests to your server by rendering SVG images inline to the rest of your HTML.
Post a message to one of your Slack channels when your Rails app encounters a 500 error.
That whole killing two birds with one stone approach might just work in using PaperTrail as an activity log, at least in simpler projects.
Transitioning from one database to another, or even to a whole new database with a new adapter, can be tough. Here's an easy way to transition content.
Sometimes you want to disable some of the default rake tasks in a rails project. Here's a quick way to do just that.
Want to receive approximately one email every month with new articles, tools, and references I've discovered? Sign up below.
Read past issues.
This site was created and is maintained by Sean C Davis. It was designed by Matt Willett.
The stack is Eleventy, Tailwind CSS, and loads of other open-source software. The code is built, deployed, and hosted with help from GitHub and Netlify.
And here's a super important legal document Sean made up.