Find or Create Records with Preset Attributes using create_with
Iβve been working heavily with RabbitMQ message broker infrastructure recently to coordinate events between two Rails applications. The event work involves maintaining synchronized data between specif...
Not a new #Rails feature, just something I recently learned about, the `create_with` syntax for ActiveRecord::QueryMethods. Comes in handy for cleaning up simple find_or_create_by calls within a #RabbitMQ worker. I wrote a simple explanation on its usage below
joshfrankel.me/blog/find-or...
13.01.2026 14:38
π 0
π 0
π¬ 0
π 0
A Perfect terminal with Zsh, Antidote, Oh My Zsh, Powerlevel10k, and Mise.
I love to customize my development environment. Between operating system, editor, and terminal, Iβm always reading through the configuration options to improve my workflow. Getting it to look pretty i...
Iβm always reading configuration options to improve my workflow. I spend so much time working with these tools that keeping them aesthetic is a priority. This article details my current setup with #Zsh, #Antidote, #OhMyZsh, Powerlevel10k, and #Mise.
joshfrankel.me/blog/a-perfe...
07.11.2025 18:03
π 0
π 0
π¬ 0
π 0
(between images of the Spotify logo that have been crossed out) DONβT STREAM FASCISM
Spotify is treating ICE recruitment like just another ad. But when you turn family separation into a marketing pitch, you're not a platform β you're spreading propaganda.
β’ Cancel your Spotify Premium subscription until Spotify removes all ICE ads
β’ Demand Spotify immediately terminate all
ICE and DHS advertising contracts.
β’ Urge artists and podcasters to speak out.
Spotify is running ads recruiting more ICE agents to infringe our rights and terrorize our communities, so weβre calling on users to stop paying for or using the app until Spotify stops streaming fascism: indivisible.org/cancel-spoti... #CancelSpotify
07.11.2025 17:22
π 3163
π 1744
π¬ 152
π 97
Good question! My response would be, it depends. I follow the standard of General-Purpose components remaining stateless to allow composability. Application-Specific components on the other hand are targeted to a page or feature. These can be stateful, though I'm open to changing my opinion here π
09.10.2025 14:05
π 0
π 0
π¬ 0
π 0
Custom Naming for Database Tables, Columns, and Associations in Prisma ORM
Iβve been working with Prisma as an object-relational mapping tool for my projects. Coming from a background of using raw SQL along with ActiveRecord, Iβve noticed that default Prisma caters to JavaSc...
I've been working on a project with #Next.js and #prisma. I miss the niceties provided by ActiveRecord along with PostgreSQL's best practices, so I wrote a blog post detailing how to customize tables, columns, and associations in Prisma.
joshfrankel.me/blog/custom-...
#JavaScript, #Nextjs, #Prisma
27.05.2025 15:37
π 2
π 0
π¬ 0
π 0
joshfrankel.me/feed
Thanks for the repost today!
16.05.2025 16:12
π 1
π 0
π¬ 0
π 0
ViewComponents, the Missing View Layer for Rails
If youβve worked with Rails for any measure of time, then you know that Railsβ Views can quickly get out of hand. Between Helpers, instance variables, and inline logic, they quickly become bloated and...
ViewComponents reduce bloat, simplify data, and create reusable frontend styling. Despite these benefits, they're often under-utilized in the Rails community. I've written a blog post refactoring a real-world example into isolated ViewComponents.
joshfrankel.me/blog/viewcom...
#ruby #rubyonrails
15.05.2025 12:56
π 4
π 2
π¬ 1
π 0
27.02.2025 22:04
π 76524
π 23923
π¬ 1467
π 1230
5 Calls
Spend 5 minutes. Make 5 calls. Make your voice heard.
If you haven't already, call your representatives. It only takes 5 minutes: 5calls.org
06.02.2025 19:20
π 1
π 0
π¬ 0
π 0
Enumerable#partition and Object#tap are both very handy
14.12.2024 18:14
π 1
π 0
π¬ 0
π 0
Previews
A framework for building reusable, testable & encapsulated view components in Ruby on Rails.
Tailwind UI (great starting point) with ViewComponents backing. π
ViewComponents have a great way to easily preview their variations as well: viewcomponent.org/guide/previe...
12.12.2024 17:58
π 1
π 0
π¬ 0
π 0