Notes about things
[Active Storage] is awesome for uploading images, but handling `has_many_attached` needs some additional stuff if you want be able to add and remove specific images. This is how I setup multiple uploads so files can be added and deleted without re-uploading the files.
Making emails look nice is a huge pain! [Foundation Emails] help by giving you short HTML tags that are expanded into HTML for emails and nice classes for styling.
[CommandWP] is getting to a point where I'd like to get some early adopters using it. I'm not sure what a good approach might be. Here's what I'm thinking about.
The push to use webpack with rails is getting too much to resist! You can setup some good stuff with sprockets, but it's a pain and a lot of it doesn't seem too updated. So... to get things like good ES6 support, minification, easier script managment with Yarn, and PostCSS support; It's time for webpacker
Example 404 page for an [11ty](https://11ty.io) site.
I've run into this a couple of times lately. Everything works fine when refreshing a page, but when navigating there via turbolinks the JS doesn't work. Here's how I'm handling it. Layout Turbolinks likes to have any JavaScript in the head...
Multiple file search and replace using VIM and renaming files with the command line.
When I started learning to create webpages the web was fun and crazy and annoying. It was also open and easy to get started. There are a few trends that are bringing some of that web back. I'm loving it!
I usually don't write about the side projects I'm working on. In the spirit of changing that, I'm going write about my thoughts for [CloudSh](https://cloudsh.com) & the Freemium model. CloudSh is a SAAS service providing search for static sites, or any site really, as long as the content is public. I initially planned on having an free level, then changed my mind, then changed it again! WTF?! It's hard working in a vacuum!
Using Rails 5 to serialize objects into a JSON field in the DB. We're gonna assume we want to store some options as a JSON field on a User model. And we want an Options model to work with in code.