Tagged with: web

How to Exclude ID Lookup by Integer When Using FriendlyId

Hello there! Are you at the point in your Ruby on Rails project where you’d like integer-based slugs like /users/2 to be friendlier and look like /users/matt instead? How about /posts/how-to-make-great-tacos instead of /posts/31? There are...

Using Clearance with Rails 7

For some time now, the Ruby on Rails community has anointed Devise as its preferred authentication solution. I’ve repeatedly used Devise, and it’s great. Not all of us have the time or expertise to roll our own auth, so it’s fantastic a...

I Cancelled My Hey Email Accounts

Yesterday I canceled two @heyhey email accounts. It’s really hard to figure out what the two fellas at the top were thinking by implementing their new company policy on political/social discussions. It’s especially bizarre given the outspoken nature of...

Pleased with WordPress and DreamHost

Disclaimer: I’m not being paid or getting any referral kickbacks from DreamHost. This is just an honest review.

COVID has forced us all to make changes in our lives and I’m no exception. For a year I’d planned to start building my video game in September when our daughter...

My websites

Web devs are constantly putting up and pulling down their own sites and I’m no different. So here is my latest attempt at organization. I plan to make this site my informal blog where I’ll talk freely about anything. leavingharbor.com will just focus...

Bootstrap 4 Cheat Sheet

Get your Bootstrap 4 documentation faster!

This got posted on Hacker News the other day. It’s fantastic. It’s much quicker and cleaner than Bootstrap’s documentation. It’s not going to be as verbose, but if you’ve been using...

Editing a form using fields_for in Rails

Let’s say you’d like to successfully create or update a nested form using fields_for. Our ‘parent’ will be a Post model and our ‘child’ will be a Tag model. It’s not hard, but there’s a bit of a gotcha that I found most other resources out there were leaving...