How to RSpec a Jbuilder response from a Rails JSON API

Want to write a Rails API controller test and make sure it includes exactly what your Jbuilder serializer returns? Set `render_views`. Learn why in this post.

#Ruby on Rails#testing
Added: 21 May 2024
A new version of Suspenders has been released!

We took our Suspenders to the tailor and made some alterations.

#Consulting#Ruby on Rails
Added: 20 May 2024
Ruby on Rails Code Audits: 8 Steps to Review Your App

Check the health and security of your Rails app with these quick guide to Ruby on Rails Code audits. These are the steps to take to review your ruby on rails...

#Consulting#Ruby on Rails
Added: 20 May 2024
Ruby class pattern to work with API requests with built-in async approach

Ruby pattern to connect multiple APIs to your project more easily with async requests approach

#Backend#Ruby#Ruby on Rails
Added: 17 May 2024
Rails 8 adds Kamal by default.

All new applications using Rails 8 will have Kamal by default.

#DevOps#Ruby on Rails
Added: 17 May 2024
Tips for Using Slack

In order to master our craft we need to master our tools. Slack is one of those tools. Here are my tips for Slack.

#Consulting
Added: 17 May 2024
Making a Postgres query 1,000 times faster

Learn how we discovered what was slowing down large database queries, and what we did to make Postgres queries 1000x faster.

#Consulting#database
Added: 15 May 2024

Note: This is part of the Production vs Tutorial Code Series.

#Consulting#Ruby on Rails
Added: 13 May 2024
How we’re building more inclusive and accessible components at GitHub

We're making improvements to the way users of assistive technology can interact with and navigate lists of issues and pull requests and tables across GitHub.com.

#Consulting#Frontend
Added: 10 May 2024
Running Thruster with Rails and Kamal

Thruster is a new zero config proxy from 37signals. Here’s how to add it to an existing Rails projects deployed with Kamal.

#DevOps#Ruby on Rails
Added: 10 May 2024
How to build a Cmd+k search modal with Hotwire

Many applications feature cmd+k search modals. This includes documentation websites like Bootstrap or Tailwind CSS, as well as applications I use every day, such as GitHub and Basecamp. I recently had to build one, and it was so easy thanks to Hotwire that I wanted to share how I built it with you. Imagine we have a documentation websi...

#Frontend#HOTWire#Ruby on Rails
Added: 6 May 2024
Rails Adds GitHub CI Workflow By Default To New Applications

All new applications using Rails 7.2 will have GitHub CI workflow by default.

#Backend#DevOps#Ruby on Rails
Added: 4 May 2024
Why you need a "WTF Notebook"

There's a very specific reputation I want to have on a team: "Nat helps me solve my problems. Nat get things I care about done."

#Consulting
Added: 3 May 2024
Tips for Database Design (Part 1)

The database is often the bottleneck in our application, both in terms of performance and developer velocity. Changing the database is a lot harder than changing the code.

#Backend#Consulting#database#Ruby on Rails
Added: 3 May 2024
Choosing the Right Audit Trail Approach in Ruby

The Ruby ecosystem offers a wide range of tools for building an audit trail, each with its pros and cons. So, which one is the best choice?

#Backend#Ruby#Ruby on Rails
Added: 3 May 2024
Nightly Postgres Backups via GitHub Actions

Recently I wanted to set up nightly backups of my Postgres databases hosted on Neon.tech. Yes, they have backups and PITR but I knew I’d feel better if I had backups just in case. My business…

#Backend#database#DevOps
Added: 3 May 2024
One engineer company with Ruby on Rails

All slide content and descriptions are owned by their creators.

#Consulting#Ruby on Rails
Added: 30 Apr 2024
Refactoring for Readability in Ruby: a Showcase

The problem Within my 10 years of developer experience, over and over again I see an...

#Consulting#Ruby#Ruby on Rails
Added: 30 Apr 2024
Ruby on Rails: Native route constraint for authentication

Since Rails 7, there's more and more tooling that enables us, developers, to roll our own...

#Backend#Ruby on Rails
Added: 30 Apr 2024
HotwireCombobox

HotwireCombobox is at an early stage of development. It's nearing a beta release, but the API might change and bugs are expected. Please continue to use the library and report any issues in the GitHub repo.

#Frontend#HOTWire#Javascript#Packages
Added: 30 Apr 2024
Generate magic tokens in Rails with generates_token_for

For a long time, and probably still today, the reference for authentication in Rails is using a gem like Devise. Thing is, you’ll probably end up customizing it a lot: views, emails, onboarding flow, etc. Since Rails 7.1, we have access to several new features that make it easier to...

#Backend#Ruby on Rails
Added: 29 Apr 2024
Turbo Refreshes, Frames, and Streams

Turbo Refreshes update the entire current page in place while keeping some UI state e.g. the page’s scroll position. This might seem like overkill in some cases and they’re slower that Turbo Streams, but they can really simplify response code (and the performance hit may not matter anyway).

#Frontend#HOTWire#Ruby#Ruby on Rails
Added: 27 Apr 2024
authenticate_by: Prevent timing-based enumeration of users. | a-chacon

With the introduction of authenticate_by in Rails 7.1, we can now prevent enumeration attacks based on response times.

#Backend#Ruby on Rails
Added: 20 Apr 2024
Delegated types in Rails: I tried them, and I'm not sure I really understood them. - Remi Mercier - Ruby on Rails Developer

Delegated types are a modelization pattern introduced in Rails in 2020. And developers have mostly been scratching their head for a few years trying to use them in their applications. Today, I want to share a real-world use case. I'll walk you through my pre-existing domain architecture, my initial requirements, my mistakes, how I eventually used delegated types, what I learned and my open questions.

#Backend#Ruby on Rails
Added: 18 Apr 2024
Dual-Boot Ruby on Rails Using Docker - FastRuby.io | Rails Upgrade Service

How can we use the Dual-Boot technique efficiently to upgrade our Ruby or Rails application when the workflow involves using Docker? Let's see 2 approaches.

#Backend#DevOps#Ruby on Rails
Added: 17 Apr 2024
First Previous Next Last