Notes about things

Rails 6 and multiple uploads
Dusty Candland | | rails, rails6, stimulus

[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.

Rails 6 Inky Emails
Dusty Candland | | rails, rails6, email, inky, foundation emails

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.

Add Webpack to Rails 5
Dusty Candland | | rails, rails5, webpack, webpacker, scss, bootstrap, font-awesome

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

Rails Turbolinks not firing JS on load
Dusty Candland | | rails, turbolinks, javascript

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...

Webdev like it's 1997
Dusty Candland | | webdev

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!

To Freemium or Not Freemium?
Dusty Candland | | saas, cloudsh

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!

Rails JSON Serialized Fields
Dusty Candland | | rails, rails5, simple_form, factory_bot

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.

All Posts