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.
Will I Find Work if I Learn Ruby?
You love Ruby. It’s quirky, you have lots of fun solving problems with it. But will there still be jobs waiting for you if you invest more time learning Ruby in 2021? [more inside]
Rails' Hidden Gems: ActiveSupport StringInquirer
If you’ve ever checked the environment in your Rails app with Rails.env.production? you’ve used a fascinating little utility class called StringInquirer. In this post, Jonathan Miles dives into the rails codebase to show us exactly how StringInquirer works and how we can bring a little of its magic to our own apps.
Continuous Integration for Monorepos
- Learn how to design and run faster CI/CD pipelines on #monorepos.
active_workflow_agent-0.1.0 released
active_workflow_agent helps you to write your own ActiveWorkflow agents in Ruby using ActiveWorkflow’s agent API. [more inside]
The "What" and "Why" or How I'm hiding those ugly if's in my Service Objects
The “What” belongs to perform public method and the “Why”s reside in private methods. [more inside]
Solidus v3.0.0
Solidus 3 supports Ruby 3, Rails 5.2, 6 and 6.1 and now ships with support for Active Storage attachments by default. This major bump only removed deprecated code to allow smooth upgrades from previous versions. [more inside]
Ruby 3 benchmarks in PDF generation
If you are interested, I did some new benchmarks for 2.7, 3.0 and 3.0 –jit.
Super v0.0.13
Release of the next version of Super, a Rails admin framework. https://zachahn.com/posts/1618836714/ [more inside]
Ruby and Ruby on Rails Productivity Tricks
Sometimes software developers believe that productivity means writing code as quickly as possible. However, true productivity with a programming language is determined by the quality of your code. [more inside]
'render' is not your final word in your Rails controller's action
Suppose you are using some library that performs some logic in your controller and render some templates once some invariants are not met. Assume the library is old and was created once you were not using JSON API but was only rendering HTML templates. Now you need to add similar logic to your API controller. You may think that you should now modify the library to handle JSON responses, but that’s not the only solution you can use. [more inside]
Alba 1.0.1 has been released
I just released a new version of Alba, a JSON serializer for Ruby. This release includes a few bugfixes and loosens Ruby version constraint to 2.5.0.
Ruby on Rails Controller Patterns and Anti-patterns
In this part of the series on Rails patterns and anti-patterns, we are going to analyze the final part of the MVC (Model-View-Controller) design pattern — the Controller.
Mastering CSV in Ruby
A small ebook that covers the most important knowledge about processing CSV with Ruby -
Automated Testing: The Cornerstone of CI/CD
Learn what automated testing is, how the path to a fully automated test suite looks like, and the challenges that lie along the way.
PostgreSQL EXPLAIN ANALYZE for Rails Developers Part 1 - Indexes
Interpreting the output of SQL EXPLAIN ANALYZE might seem like dark magic at first. I’m starting a series of blog posts where I’ll be well… explaining it based on common use cases from web applications. Read on if you’ve ever wanted to start using EXPLAIN ANALYZE for debugging slow PostgreSQL queries but did not manage to wrap your head around it. In the first part, we’ll discuss how the PostgreSQL query planner decides whether to use an index. [more inside]