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.
How to Effortlessly Build an Instagram Clone With Hotwire
In this video, we’re going to look at how you can build an Instagram clone with Hotwire.
State Machines in Ruby: An Introduction
Let’s build a simple state machine in Ruby and use the state machines gem:
Ruby 3 adds Scheduler Interface for Fibers
Ruby 3 introduced Fiber::SchedulerInterface to support the concept of non-blocking fiber. With this new interface, we can split the long I/O operations into separate fiber hooks, and instead of us controlling the fiber execution, the Scheduler will manage it for us.
Cheatsheet about extending Ruby classes
Some simple explanation of how include, extend and prepend works. My first blogpost which is published somewhere :)
5 Easy to Miss Security Best Practices for Web Apps
Worrying about your app’s quantum resistance is a perfectly legitimate concern. But, in this blog post, I’ll take a step back and describe and few simple but easy-to-overlook security tips. In many cases, a single line of config can protect your web application from a range of attacks. [more inside]
xchan.rb: a lib for easily sending Ruby objects between Ruby processes
xchan.rb is a lib for easily sending Ruby objects between Ruby processes who have a parent<->child relationship. The implementation uses a UNIXSocket, and the serialization format of your choice - the default is Marshal.
Styling Simple Form forms with Tailwind
How we how we managed to style our new admin forms (built with Simple Form) with Tailwind CSS while keeping them flexible.
Scaling Rails web sockets in Kubernetes with AnyCable
At Brella - an event management platform - I am building our own chat to replace a third party service. To be able to scale web sockets more easily, I switched from regular ActionCable to AnyCable. I wrote a post on how I set this up in Kubernetes. [more inside]
Which one to use? eql? vs equal? vs == ?
This post shows development process for the Country Value Object using mutation testing and the difference between methods mentioned in the title [more inside]
Debugging Ruby on Rails applications
My first course has just been published on LinkedIn Learning. You can access it for free for a limited time by clicking on the link in my post:
Ruby Call Path Analysis using TracePoint
Wrote this last year but still think this might help some Ruby folks performing trace analysis or different call paths. [more inside]
Ruby regexes, updated
An updated content about Ruby Regex. [more inside]
Designing A Dependency's Domain
This article decomposes an interaction with an external dependency into its component parts. It discusses how to test each piece individually and the overall architecture.
The simple way to get a fake picture
Hi everyone :-). I created gem for a simple way to generate a fake picture or may be logo, like for your factories. All pictures available in gem, and you can use it even without internet from the box! You can find it just here, just click: fake_picture
From HTML to Simple Form: anatomy of Rails forms
A tutorial on how forms are actually built in Rails and how we can customize the process. [more inside]
Ruby Facets 3.2.0 Supports RubyMotion
You read that right! The famous Ruby Facets library finally supports RubyMotion. That means you can now use popular methods like String#underscore and String#camelcase from inside RubyMotion iOS applications. This change was done in the facets-glimmer fork of the project, so you would have to install the facets-glimmer Ruby gem to get it. [more inside]
I Love Ruby - Libre & Gratis Ruby book updated
Hello All, I am modifying my ruby book I Love Ruby for Ruby 3 era, I have written about the following sections: [more inside]
Rubber Duck Dev Show Episode 46 | Ractors: Actors for Ruby
Hear two rubyists discuss ractors which are Ruby’s implementation of the actor model for concurrency:
What is microservice architecture?
Microservices have become the new darlings in modern software development. Despite the benefits, this paradigm is easy to get wrong. [more inside]
Glimmer DSL for SWT Video Tutorial 20 - Hello, Tray Item!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Rails 7 extends audio_tag and video_tag to accept Active Storage attachments Rails 7
Rails 7 extends audio_tag and video_tag to accept ActiveStorage attachments Rails 7 [more inside]
Rails link_to tutorial and examples
link_to is a helper method in Ruby that is very useful to enable users to navigate through applications. [more inside]
Llewellyn Falco on Mob Programming for Optimizing Testing and Team Growth
Agile coach and creator of ApprovalTests Llewellyn Falco talks about the benefits mob programming has for developing, testing, and business. [more inside]
Self-destructing StimulusJS controllers
Add sprinkles of Javascript behavior with Stimulus controllers that run a few lines of code and then remove themselves from the page. Like inlined jQuery snippets but for the modern times! [more inside]