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.
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]
Awesome Ruby Command-Line Applications list
The Awesome Ruby CLI applications list aims to highlight great Ruby tools used and enjoyed by many devs. To make this resource useful and full of great examples, I need your help. Do you know an awesome Ruby CLI app? Contribute it to the list!
HexaPDF 0.15.0 released - form/annotation flattening
I just released HexaPDF 0.15.0 which implements support for flattening annotations and AcroForm fields. See
Using Angular with Rails 5
Before you can decide on a front-end for your Rails app, you need a feel for the options. Does a particular JS framework speak to you or does it make you feel dirty inside? There’s only one way to find out! In this article, Julio Sampaio walks us through creating an Angular app from scratch and integrating it with a Rails back-end via webpacker.
Why You Should Avoid Models in Rails Migrations
When writing migrations in Ruby on Rails, it can seem easy to leverage ActiveRecord models and their defined methods. Unfortunately this approach is not without its problems. Learn what these problems are and how to avoid them in this article.
Hotwire: Reactive Rails with no JavaScript?
It is time to cast the long-teased new magic by DHH & Co. and learn to use Hotwire beyond the 5-minute tutorials. An article that compliments the RailsConf 2021 talk by Vladimir Dementyev.
Implementation of extension methods in Ruby and C# - comparison
Extending classes with new methods is a pretty useful feature of object-oriented programming languages. However, implementation of extension methods can be more or less simple and elegant. Today I would like to compare implementation of extension methods in C# and Ruby. [more inside]
Maily v2 is out 🚀
Hi 👋 We just released Maily v2.0.0 to RubyGems! [more inside]