The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Exploratory Guide on Active Model Dirty in Rails
Explore the Active Model Dirty API in Rails with this in-depth guide. Learn how to track changes to your model objects, handle validations, and persist changes to the database. [more inside]
ordinals gem - ordinal inscription api & recursive image helpers and more
is it ordinal summer? i’ve put together the ordinals gem - a light-weight (free, no api key required) ordinal api wrapper / client for inscriptions (letting you fetch metadata and content) and bonus the new version 1.1.0 now includes recursive image helpers (that let you generate .SVGs) … see diypunks.svg on the ordtest(net) with 9 recursions as an example.
Service Objects On Rails
Yes I know, another one of those ;) Bear with me, I believe we can add a bit to the debate and give some practical tips on why, and how, service Objects work for us. [more inside]
Creating Custom Rails Generators
After several failed attempts at creating custom Rails Generators over the years, I finally got around to really digging in and put together a medium-fidelity guide to understanding them and getting them working. https://garrettdimon.com/journal/posts/creating-custom-rails-generators
A list of places where to promote an article about Ruby
I tried to gather at https://allaboutcoding.ghinda.com/where-to-promote-an-article-about-ruby a list of places where you can promote an article about Ruby
New Truemail 3.0.9
In the latest truemail release has been fixed default email pattern follow to RFC 1035. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Seed your database with the Faker gem. Then seed 9.4x faster with upsert_all 🎭
Hey RubyFlow, I just published an article on seeding your database with the faker gem. [more inside]
Have rails flaky tests? fix now
With this simple method you can now fix the rails flaky tests in seconds. [more inside]
Don’t reinvent the wheel with Rails exception handling
With the built-in rescue_responses setting, you can map exceptions to error pages in a simple, declarative way. It automatically renders JSON, too! https://mattbrictson.com/blog/handling-rails-exceptions
Running SASS and Tailwind side by side in Rails
Do you need to run Bulma and Tailwind together or interested how it would even work? Read how to do it with cssbundling-rails gem.
DRTiled With Wildfiler | Rubber Duck Dev Show 92
In this episode, we discuss the DRTiled library which helps you load tile data in Dragon Ruby from the Tiled application: https://www.rubberduckdevshow.com/episodes/92-drtiled-with-wildfiler/
Testing Inherited Behavior
Recently I asked how people prefer to see inherited behavior tested. This discusses each of the options in more detail and shows the results of the poll. https://kevinjmurphy.com/posts/testing-inherited-behavior/
Glimmer DSL for SWT 4.28.0.0
Glimmer DSL for SWT 4.28.0.0 (JRuby Desktop Development Cross-Platform Native GUI Framework) is the quarterly major release that happens after a new version of Eclipse SWT (Standard Widget Toolkit) is released. It is wrapping SWT 4.28, which was released on June 5, 2023. [more inside]
Master records selections in Rails app with SQL window functions
Learn how to use row number window function on a practical example to select unique latest grouped records from DB. [more inside]
Your journey as a mid-level Ruby on Rails developer
Get on board and let’s sail beyond the horizon. [more inside]