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

Boston Vim: Learning Vim in a Week

  • Mike Coutermarsh

Mike Coutermarsh

Sep 4, 2014

Slides

Get notified of new posts

Enter your email
Subscribe

How dare you test a private method

I feel inspired to talk more about “testing a private method” (gasp!). Since people seem to get upset about it. Where did this idea of it being bad even come from? I remember when learning to code it was all over the place. Blog posts, books, podcasts. I remember being
Sep 27, 2023 1 min read

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
Mike Coutermarsh © 2023
  • HTML/CSS to Image API
  • Twitter
  • GitHub
  • LinkedIn