Travel, Code, and Engineering

Tag: rails


How to Migrate a Rails App from MySQL to Postgres

I recently switched from developing Rails apps on Windows to macOS. In doing so, I had a ton of difficulty getting the mysql2 gem to install. That turned out to be the last straw, and I migrated...


Connect Four in Ruby on Rails and Vue.js

I recently created an online version of Connect Four as part of a coding challenge. It is a SPA with the frontend written in Vue.js and the backend in Ruby on Rails 5.1. The code is available on...


Using cURL in Ruby on Rails to Force Facebook to Rescrape a URL

I recently ran into a problem with the Facebook share button on my blogging platform, Bloopist. Whenever I shared an post, the share box from Facebook showed an incorrect image and description of...


Fixing CORS Security Holes

I recently received an email alerting me to a security vulnerability in Bloopist, my custom blogging platform. The security vulnerability would have allowed attackers to impersonate other users on...


React and Ruby on Rails Lessons Learned

I recently started using React in my web apps to make them more interactive. React is great for the view layer of an application, but it needs to be paired with a backend of some sort. In my web...