How to Access Hash Values with Methods Using OrderedOptions

Have you ever wanted to create a hash where you could access the values like methods on an object? The OrderedOptions class in Rails lets you do just that. This post shows you how. We'll also explore how Rails implements this feature using Ruby's metaprogramming features.

#Backend#Ruby on Rails
Added: 20 Apr 2023
The In-depth Guide to Caching ActiveRecord SQL Queries in Rails

Caching might seem a perfect solution to speed up slow database queries. However, caching in Rails apps can be easily misused, leading to poor maintainability or even slower performance than without it. In this blog post, I'll discuss the common pitfalls of caching SQL queries in Rails apps. I'll also describe my toolkit for assessing the cacheability of database queries and techniques for reducing the cost of caching infrastructure.

#Ruby on Rails
Added: 20 Apr 2023
GitHub - exoego/rspec-openapi: Generate OpenAPI schema from RSpec request specs

Generate OpenAPI schema from RSpec request specs. Contribute to exoego/rspec-openapi development by creating an account on GitHub.

#Gem#Ruby on Rails#testing
Added: 20 Apr 2023
Tools to help you detect n+1 queries

This is a little reference of tools to help you detect n+1 queries on a rails app. Bullet Prosopite n plus one control strict loading Rack mini profiler

#Backend#Ruby on Rails
Added: 20 Apr 2023
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 favorite.

#Backend#Ruby
Added: 18 Apr 2023
una.im | Using color-mix() to create opacity variants

Build an alpha color system without splitting out channels using this one neat trick.

#CSS#Frontend
Added: 17 Apr 2023
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...

#Backend#Frontend#Ruby on Rails
Added: 16 Apr 2023
Implicit Layout rendering in Rails

Learn how to use Rails' Action View Layouts by implicitly choosing them based on your controller's inheritance chain.

#Frontend#Ruby on Rails
Added: 16 Apr 2023
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 article explains how to solve this problem with a subtle approach.

#Backend#Ruby on Rails
Added: 16 Apr 2023
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 and fails sometimes even though no code has changed. There are several causes of flaky tests. The commonality among all the causes is that they all involve some form of non-determinism: code that doesn’t always […]

#Ruby on Rails#testing
Added: 15 Apr 2023
How to wrap Rails mailer previews in a database transaction

Use monkey patching to revert database changes in Rails mailer previews.

#Backend#Ruby on Rails
Added: 14 Apr 2023
Dealing with common and uncommon problems with parsing CSV with Ruby

Effectively parse CSV with Ruby

#Ruby
Added: 14 Apr 2023
Humane Rails Forms

Create forms that are easier for people to use

#Backend#Frontend#Ruby on Rails
Added: 13 Apr 2023
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?

#Soft Skills#Staff Engineer
Added: 13 Apr 2023

Imagine that you need to query for the records created in the “week before” of a given date. How would you do it?

#Backend#Ruby on Rails
Added: 13 Apr 2023

Do you want to build powerful admin interfaces with little code, but you are not sure if you want to jump into a full admin solution like Active Admin, Administrate or Avo? Here I want to show you an alternative! A step by step guide to build a dynamic...

#Backend#Frontend#HOTWire#Ruby on Rails
Added: 13 Apr 2023
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.

#Backend#Ruby on Rails
Added: 13 Apr 2023
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 this…

#Backend#Ruby on Rails
Added: 12 Apr 2023
RANK() vs DENSE_RANK() vs ROW_NUMBER() in SQL

Understanding the difference between these window functions in SQL

#Backend
Added: 10 Apr 2023
How to use React just on one page in a Rails app

Is it possible to do this without setting up a whole separate React app externally and making your Rails app support API requests from the front-end? It sure is. React is just JavaScript after all, even if you have to go through a transpilation step or two. Let’s go through a small example to see how this might be done.

#Frontend#Javascript#Ruby on Rails
Added: 9 Apr 2023
Ruby Bytes, or generating standalone generators—Martian Chronicles, Evil Martians’ team blog

Introducing Ruby Bytes, a toolkit to build, install and deploy Ruby and Rails application templates.

#Ruby#Ruby on Rails
Added: 8 Apr 2023
Feature flags in Rails: How to roll out and manage your features like a pro

Feature flagging is a widely adopted technique used in software development that enables developers...

#Backend#Ruby on Rails
Added: 8 Apr 2023
How to Decommission Your Ruby on Rails Application

Did your organization decide to sunset your Rails application? Our team has developed a comprehensive approach to safely decommission your Ruby on Rails app.

#DevOps#Ruby on Rails
Added: 8 Apr 2023
How does database sharding work?

Learn what sharding is, how sharding works, and some common sharding frameworks and tools.

#Backend#DevOps
Added: 7 Apr 2023
Building GitHub with Ruby and Rails | The GitHub Blog

Since the beginning, GitHub.com has been a Ruby on Rails monolith. Today, the application is nearly two million lines of code and more than 1,000 engineers collaborate on it daily. We deploy as often as 20 times a day, and nearly every week one of those deploys is a Rails upgrade. Upgrading Rails weekly Every […]

#DevOps#Ruby#Ruby on Rails
Added: 7 Apr 2023
First Previous Next Last