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.
Introduction to Stimulus Reflex
Stimulus Reflex lets you build realtime, reactive apps in Rails similar to Phoenix LiveView. You don’t have to write any Javascript and it will use Rails to render all the HTML updates server-side. Check out Stimulus Reflex.
NEW: You don't have to be a genius to contribute to the open source
I’ve just published a new post on That Weekly Tech. You don’t have to be a genius to contribute to the open source ––> https://www.thatweeklytech.com/posts/5-you-don-t-have-to-be-a-genius-to-contribute-to-the-open-source
Full Text Search in Milliseconds with Rails and PostgreSQL
In this article, Leigh Hallidays shows how to optimize a Full Text Search implementation, taking a single query from 130ms to 7ms. [more inside]
ViewComponent at GitHub with Joel Hawksley [Podcast]
Joel Hawksley is the guest on today’s episode. He is a Software Engineer at GitHub and works on the design system team, leading development on ViewComponent, formerly known as ActionView::Component. Joel is a very encouraging, uplifting, and inviting guest who tells it like it is. Andrew even throws in a little “homework” for those of you listening! If you want to learn more about how GitHub is leveraging ViewComponent, give this episode a listen!
Function Composition in Ruby
In this article, we’re going to explore the following topics:
Well-behaved Ruby Objects: Equality
A “well-behaved” object in Ruby needs to understand: What makes two Ruby objects “equal”? And which version of “equal” (there are several in Ruby)? And what makes an object usable as a Hash key? And is that the same thing that makes them Comparable? https://stevenharman.net/well-behaved-ruby-object-equality
From Agency Life to Software Development: Q&A with Steve Polito [Podcast]
The Remote Ruby crew is joined by Steve Polito, a developer working at an agency, to have a Q&A about transitioning into being a full-time software developer working on products. If you’re a junior developer or in a similar situation, give this episode of Remote Ruby a listen.
Predicting the Future With Linear Regression in Ruby
The world is full of linear relationships. When one apple costs $1 and two apples cost $2, it’s easy to figure out the price of any number of apples. But what happens when you have 100s of data points? What if your data source is noisy? That’s when it’s helpful to use a technique called linear regression. In this article Julie Kent shows us how linear regression works, and walks through a practical example in Ruby. https://www.honeybadger.io/blog/ruby-linear-regression/
ActiveJob, GDPR and my contribution to Rails
Ruby on Rails has some built-in solutions to guarantee GDPR compliance. It is not ideal though. I made some effort to make the framework more complaint. https://frontdeveloper.pl/2020/04/activejob-gdpr-and-rails-contribution/
Exploring Method Arguments in Ruby: Part 2
The first part had a good response, so here is part two! [more inside]
Dissecting Rails Migrations
Let’s break down a migration process and find out how to write an effective migration. https://blog.appsignal.com/2020/04/14/dissecting-rails-migrationsl.html
Heya is a campaign mailer for Rails
Heya is a campaign mailer for Rails. Think of it like ActionMailer, but for timed email sequences. It can also perform other actions like sending a text message. I built Heya to replace part of Intercom in our Rails app at Honeybadger.io. (also: source code, reddit post)
Anyway Config: Keep your Ruby configuration sane
Learn how to escape the ENV Hell with Anyway Config from Vladimir Dementyev, author of AnyCable, TestProf, and Action Policy.
footballdb-clubs gem 2020.4 Update - top 2500+ football clubs from around the world
Hello, I’ve updated the footballdb-clubs gem that ships “out-of-the-box” wit the top 2500+ football clubs from around the world (incl. name matcher) for easy (re)use. What’s news? Now all clubs listed in the UEFA Champions League Statistics Handbook (1955-2019/20) and the UEFA Europa League Statistics Handbook (1971-2019/20) are included; all clubs from the 55 top (tier 1) UEFA leagues and much more. Enjoy the beautiful game with ruby. Cheers. Prost.
Custom Exception Handling in Ruby
Ruby uses exceptions for a wide variety of errors and unexpected results. This lets Rubyist handling more common errors as well as creating their own custom errors. Let’s see how to do that: https://blog.bearer.sh/handle-ruby-exceptions/
Testing Ruby decorators with super_method
When we write Ruby decorators often we need to override a simple method which returns a data set just to add a couple of fields. How can we test this scenario without writing complex specs? https://nebulab.it/blog/testing-decorators-with-super-method/
A guide to Webpacker’s YAML configuration
In this post, we’ll do a deep dive on the role of the webpacker.yml file for Webpacker configuration. https://rossta.net/blog/how-to-use-webpacker-yml.html