Could not dump table 'users' because of following StandardError Unknown type 'user_role' for column 'role'

One of my tables in schema.rb wasn’t being dumped at all. At first I thought it had to do with a migration I reverted without applying it, but turns out it was because of a PostgreSQL enum column.

/mcc-workflow #ruby #rails #databases

Adding users and roles to Mcc-Workflow

Decided to add users and roles for MCC-Workflow as I prepare to invite writers and editors. Thank you Devise and CanCanCan for making everything super easy!

/mcc-workflow #ruby #rails #devise #cancancan #rails_admin

The case of the infinite poop emoji crawler trap

I noticed that my crawler was getting stuck in a site even though I set a timeout to get. Little did I know that the site was full of poop.

/mcc-workflow #ruby #http

lvh.me and localtest.me for subdomain local testing

So localhost works great for most of your testing. But what happens when you need to test subdomains like test.localhost?

/til #til

Rugged::OSError (failed to resolve path)

My local copy of exercism didn’t render certain static pages. After a while it turns out, it’s because of Windows.

/exercism #exercism #rugged #ruby #windows