Mike Coutermarsh
  • Home
  • About
  • Twitter
  • GitHub
Sign in Subscribe

Jr. Developers #1: Pull Requests & You

  • Mike Coutermarsh

Mike Coutermarsh

Nov 30, 2015

View this post on Medium.

Get notified of new posts

Enter your email
Subscribe

How to use Flash messages from a Rails API only controller

If you are debugging this Flash message error. undefined local variable or method `flash' for And you are currently using an API only Rails controller, but still want to use flash messages in your app because you are redirecting to a normal controller. Then you can fix this by adding
Aug 16, 2023

How to stop Rails from setting a session cookie

Recently I was working on a Rails API and I wanted to stop Rails from setting it's _session cookie for API requests. Since these requests are authenticated via an API token, there's no reason for the cookie to be returned to the user. # application_controller.rb after_action lambda { request.
Aug 11, 2023

How to make a Fly API call from Ruby

Fly has a graphql API available. You can find ways to use it by looking through their CLI's source code. I recently wanted to automate a Fly API call from a ruby script. And I was not in an environment where I wanted to install the fly CLI. Here's some
Jul 31, 2023 1 min read
Mike Coutermarsh © 2023
  • HTML/CSS to Image API
  • Twitter
  • GitHub
  • LinkedIn