Rails Security: Action Policy & Rabarber

Secure your Rails app with Action Policy and Rabarber for effective user roles and authorization. Simplify admin access and permissions

#Ruby on Rails
Added: 21 Sept 2024

This article demonstrates a short-coming with using RSpec mocks in code which accesses objects out of a database.

#Ruby#Ruby on Rails#testing
Added: 21 Sept 2024
Shrinking Big PostgreSQL tables: Copy-Swap-Drop

In this post, you’ll learn a recipe that you can use to “shrink” a large table. This is a good fit when only a portion of the data is accessed, the big table has become unwieldy, and you don’t want a heavier solution like table partitioning.

#database
Added: 21 Sept 2024
How I build a button component

A button is arguably the most likely component to find itself in your codebase so I’m going to show you how I approach building one.

#CSS#Frontend
Added: 18 Sept 2024

Designing Web Components For Morphing and techniques to deal with reflecting attributes

#Frontend#Javascript
Added: 16 Sept 2024
The Rails Renaissance

The power of Rails with Turbo and Stimulus.

#Consulting#HOTWire#Ruby on Rails
Added: 16 Sept 2024
Ruby on Rails 7.1: Partial Strict Locals and Their Gotchas | AppSignal Blog

Rails partials have been around for years, but now strict locals have entered the scene to make things easier for us.

#Frontend#Ruby on Rails
Added: 13 Sept 2024

cache_key_with_version is a method used in Ruby on Rails to generate a cache key for a model object that includes its version number. This method is helpful for ensuring cache consistency, as it combines the object’s unique ID, updated timestamp, and a version number to create a unique cache key.

#Backend#Ruby on Rails
Added: 12 Sept 2024

Explore the key differences between sprockets and propshafts in rail systems. Understand their functions, applications, and how they contribute to the efficiency of rail operations.

#Javascript#Ruby on Rails
Added: 12 Sept 2024
Implementing Filtered Semantic Search Using Pgvector and JavaScript

Explore semantic search with filters and learn how you can implement it with pgvector and JavaScript.

#AI#database#Javascript
Added: 12 Sept 2024
Building a complex filtering system with Ruby on Rails

Embracing the digital experience

#Backend#Ruby on Rails
Added: 10 Sept 2024
Ruby on Rails Boilerplate: Vite, Tailwind, Stimulus

Embracing the digital experience

#Consulting#Ruby on Rails
Added: 10 Sept 2024
Upgrade Ruby using dual boot

Upgrade Ruby using dual boot

#DevOps#Ruby#Ruby on Rails
Added: 10 Sept 2024

Automate your next workflow.

#AI
Added: 10 Sept 2024
Betterstimulus | Targetless Controllers

Avoid mixing targetless controllers with those attached to a target.

#Frontend#HOTWire#Ruby on Rails
Added: 10 Sept 2024
Making a simple React microphone component

The browser has some nice built-ins for building a microphone recording component, so you don't have to use third-party libraries!

#Frontend#Javascript
Added: 7 Sept 2024
Building a breakout element with container units

Learn how to use container units and container queries to enhance an already flexible sidebar layout with some extra design control and full width breakout elements.

#CSS#Frontend
Added: 7 Sept 2024
Authenticating with OmniAuth and OpenID Connect (OIDC) in Ruby on Rails applications

What is OpenID Connect?

#Backend#Ruby on Rails
Added: 6 Sept 2024
Even Better Specs

Guidelines for Maintainable Tests

#Ruby#Ruby on Rails#testing
Added: 6 Sept 2024
Structure Your ERb and Partials for more Maintainable Front-end Code in Rails

It's not always clear how to make the most of partials and helpers in Rails and know when to put what code where. Regardless of the methods, we all still...

#Frontend#Ruby on Rails
Added: 5 Sept 2024
Mention users with TributeJS | SupeRails #186

In episode #95 we focused on parsing text and converting hashtags and mentions into links. Now let's add an @ mentions dropdown to any text field, so that you can select a user that you want to men...

#Backend#Frontend#Javascript#Ruby on Rails
Added: 5 Sept 2024
Routing Concerns in Rails

You must have used concerns in Rails. Did you know you can also use concerns for your routes? They allow you to declare common routes to be reused in other resources and routes. This post covers the basics of routing concerns, including what they are, how they work, and when you might need them.

#Backend#Ruby on Rails
Added: 4 Sept 2024
Six Degrees of Kevin Bacon - Postgres Style | Crunchy Data Blog

Paul Ramsey has some great examples of Postgres network analysis and graph theory in this sample code for playing the Kevin Bacon game. Both pgRouting and recursive CTE are used to solve graphing relationships.

#database
Added: 28 Aug 2024
Software estimates have never worked and never will

Since the dawn of computing, humans have sought to estimate how long it takes to build software, and for just as long, they've consistently failed. Estimating even medium-sized projects is devilishly difficult, and estimating large projects is virtually impossible. Yet the industry keeps insisting that the method that hasn't worked for...

#Consulting
Added: 28 Aug 2024
Redirect and return in Rails controllers

Premature returning from a controller action is a common idiom in Rails applications. I asked my followers in Twitter about whether they know or know how to do this correctly, and I am glad to see that most of them gave the correct answer. Let’s dive into the details.

#Backend#Ruby#Ruby on Rails
Added: 28 Aug 2024
First Previous Next Last