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.
Interview with Jeremy Evans, Lead developer of Sequel & Roda
Jeremy Evans is the lead developer of the Sequel database library, the Roda web toolkit, the Rodauth authentication framework, and many other Ruby libraries. He is the maintainer of Ruby ports for the OpenBSD operating system, and has contributed to CRuby and JRuby, as well as many popular Ruby libraries. We are happy to present a brand-new interview with Jeremy to our readers. Hope you enjoy it! [more inside]
ActiveSupport::Notifications is Rad!
One of the lesser known parts of Rails core is the ActiveSupport instrumentation framework. ActiveSupport::Notifications includes all the things you need to implement pub-sub in Rails. Let’s explore the joyful shenanigans of this.
gem to protect your content from copy-pasting
(DEMO available) if you have sensitive or private content which you want to protect from copy-pasting you can try to use this gem. [more inside]
Nested constants in Ruby
Did you know you can define nested constants in Ruby like this? [more inside]
The S in SOLID
A discussion about the S in SOLID, covering the significance of this principle and some practical ideas for applying it.
Dislodging mimemagic And Understanding MIT & GNU GPL.
Learn the difference between the MIT and GNU GPL licenses to know which open-source software you can include in your projects.
Lazy-loading content with Turbo Frames and skeleton loader
Add lazy-loaded content with your own custom loading skeleton with Hotwire + TailwindCSS:
Exploring RSpec – Improving Your Testing Skills
Some great features everyone who works with rspec must use! [more inside]
Why Write Rails View Tests
Find out how and why to write Rails view specs with RSpec. [more inside]
Which is fastest? ERB vs. HAML vs. Slim
A fast app means happy users. The speed that your pages render depends on which templating system you use. In this article, Diogo Souza puts the three most popular Ruby templating engines to the test to see which is fastest. In the process, he shows us how to construct benchmarks and do our own investigations into performance.
Anything I Want With Sequel And Postgres
In this article I talk about many Postgres goodies, including table partitioning, upserts, COPY, inserting from SELECT, unlogged tables, and loose counting.
Strategic 1.0.0 (Painless Strategy Pattern in Ruby and Rails)
The Strategic gem has been updated to better match the authentic Gang of Four Strategy Design Pattern, and has been finalized as 1.0.0 as a result. [more inside]
Glimmer DSL for SWT 4.19.0.0 Halved Startup Time
Glimmer DSL for SWT just had the biggest release in quite a while in version 4.19.0.0, upgrading to the newly released SWT 4.19 and cutting down the glimmer command startup time by half. [more inside]
Why is Ruby on Rails worth Investing in 2021?
The Ruby on Rails framework is still relevant in 2021. Here’s what makes the RoR framework perfect for web application development in this year.
Kiba ETL v4 (maintenance release) is out
Kiba ETL (a popular Ruby data processing framework) v4.0.0 is out! Go check it out and upgrade your apps: [more inside]
How to Improve GDPR Compliance for Web Apps using AWS
Your app must comply with GDPR (General Data Protection Regulation) even if you are not located in the EU. It is enough that you have European users. In this blog post, I’ll describe eight ways to improve the GDPR compliance for your web app. Implementing the following techniques by itself will not make your app GDPR compliant. However, if you don’t have them in place, it means that there’s a severe loophole in your app’s security and compliance. [more inside]
Live previews with Rails and Stimulus 2
If you ever wondered how to do live previews in Rails I looked into Hotwire and put together two approaches (with UJS and with Turbo Frame).
Better OOP Through Lazily-Instantiated Memoized Dependencies
The outside objects created or required by a particular class in order for it to function broadly are called dependencies. There are various schools of thought around how best to define those dependencies. Let’s learn about the one I prefer to use the majority of the time. It takes advantage of three techniques Ruby provides for us: variable-like method calls, lazy instantiation, and memoization.