From Rails Controller to Business Action
Level up your Rails controllers by extracting business logic into reusable, testable, and more organized code units. Learn how in...
Audit Logging in Ruby and Rails | AppSignal Blog
Let's explore some options to implement audit logs, including PaperTrail, Audited, AuditLog, AppSignal, and a custom implementation.
Building a dynamic data grid with search and filters using rails, hotwire and ransack
Do you want to build powerful admin interfaces with little code, but you are not sure if you want to...
Building a DateTime range to query for the records created a
Imagine that you need to query for the records created in the “week before” of a given date. How would...
How leaders can better prioritize personal to-dos
Stepping into a leadership role invites a whole host of new demands. So, how do you aptly prioritize them?
Create forms that are easier for people to use
Dealing with common and uncommon problems with parsing CSV with Ruby
Effectively parse CSV with Ruby
How to wrap Rails mailer previews in a database transaction
Use monkey patching to revert database changes in Rails mailer previews.
How I fix flaky tests - Code with Jason
What a flaky test is and why they’re hard to fix A flaky test is a test that passes sometimes...
Efficient algorithm to check dates overlap
Do you need an efficient algorithm that checks a date range overlapping with some denoted set of date ranges? This...
Implicit Layout rendering in Rails
Learn how to use Rails' Action View Layouts by implicitly choosing them based on your controller's inheritance chain.
Stripe Connect onboarding with Ruby on Rails
Stripe Connect provides a suite of tools and APIs that allow you to create, manage, and scale your...
una.im | Using color-mix() to create opacity variants
Build an alpha color system without splitting out channels using this one neat trick.
Elegant Memoization with Ruby’s .tap Method
There are a few different ways to memoize complicated chunks of code in Ruby. Here's why .tap is my personal...