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.
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]
Understading why attr_accessor in Ruby is faster than a regular method
A post about the performance difference bettween attr_accessor and a regular method (hint: prefer a built–in one, it’s way faster)
ASTs in Ruby - Pattern Matching
First post is out on ASTs in Ruby focusing on Pattern Matching and its applications for both matching against and rewriting code. [more inside]
Containerizing an Existing Rails Application
Containers are popular because they create a reproducible environment that you can deploy to production and run locally in development. However, containerizing a Rails app can be tricky—Jeff Morhous helps us navigate the pitfalls.
Turbo Confirm Modals with Hotwire
Overriding the Rails UJS or Turbo confirm methods has always been a pain. The upcoming release of Turbo supports Promises so we can very easily override the confirm modal. Learn how to make Custom Turbo Confirm Modals with Hotwire
Migrate from webpacker to esbuild
We started off as full stack engineers with our backend and frontend all in one framework. We had the asset pipeline (with sprockets) to help us maintain this ecosystem. When the time came we introduced webpacker to fill in where sprockets fell short. [more inside]
How to Add Infinite Scroll With Hotwire in Under 5 Minutes
In this video, we’re going to look at how you can add infinite scrolling to your Rails app with Hotwire. [more inside]
Hanami Router with TDD
Routing is one of the basic components of any web application. In this episode I’ll dig a bit into the Hanami router from the usage point of view, covering why it’s great and how to work with it. [more inside]
ArrayIncludeMethods Gem Now Supports RubyMotion
The array_include_methods gem v1.5.0 now supports RubyMotion in addition to MRI CRuby, JRuby, and Opal. It provides Array#include_all?, Array#include_any?, Array#include_array?, Array#array_index, Array#array_diff_indices, and Array#array_intersection_indices methods missing from basic Ruby Array API.
download random images from Unsplash
- a very simple way to add realistic images for your Rails app. Could be useful if you build some websites and you miss test images that are suitable for your projects.
The Case for Pattern Matching Key Irreverence in Ruby
Pattern matching in Ruby is an exceptionally powerful feature, but I feel there’s something more we can do to truly make it an incredible interface and that is key irreverence. [more inside]
Rubber Duck Dev Show Episode 45 | Reviewing the 2022 Rails Community Survey - Part 2
Hear two rubyists finish our discussion on the results from the 2022 Ruby on Rails Community Survey: