Andrei Maxim

Andrei Maxim

July, 02, 2024

Setting Up Postgres for Rails

If you are setting up a Rails application for development and you need to run Postgres locally, you have two options:

  1. Install Postgres using the operating system package manager (e.g. apt get)
  2. Start a PostgreSQL container

May, 02, 2024

In Relentless Pursuit of RESTful Webhooks

I’ve recently seen a code sample about working with Stripe webhooks in Rails applications and I’ve noticed the following code in the controller:

April, 17, 2024

Instance Variable Access in Ruby

Instance variables (or instance attributes) in Ruby are prefixed with an @ sign: