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 learning Rust changed my Ruby Workflow
For the last few months, I’ve been working semi-full-time on my first Rust project. After the first painful weeks of struggling against The Compiler, I feel I’m now spoiled by Rust development experience. In this blog post, I’ll describe improvements to my Ruby workflow that originate from what I’ve seen in the Rust ecosystem. [more inside]
Why I love Ruby
As a developer with over 8 years of coding experience, I’ve worked with many languages and I decided to focus my efforts on Ruby. This essay is about why I like using Ruby for work, and why it’s still relevant
Streaming LLM Responses
In this episode, we look at running a self hosted Large Language Model (LLM) and consuming it with a Rails application. We will use a background to make API requests to the LLM and then stream the responses in real-time to the browser. https://www.driftingruby.com/episodes/streaming-llm-responses
Creating new rails app or adding a new scaffold? - Use this rails command generator
I created a tool that let’s you select what you want to generate with supported options. [more inside]
Add a Kafka Consumer to Rails
Learn how to integrate a Kafka consumer into a Rails application using the Karafka gem.
Using the XDG Base Directory Specification
Hello. 👋 I wanted to share an article on leveraging XDG in your CLIs, web applications, libraries, frameworks, etc. There’s been some chatter in this space as of late, which is great to see, so wanted to show how this works and gems you can use to build upon it if interested. There’s a lot you can do with this specification, so enjoy!
Tomselect.js with autocomplete using stimulus controller
I wrote an article some time back on how to use tom-select.js with autocomplete: I hope you find it useful.
CanvasXpress - A JavaScript library for data analytics
I developed a Ruby wrapper for CanvasXpress: https://github.com/neuhausi/canvasXpress-ruby. The home page for CanvasXpress: https://www.canvasxpress.org/index.html
👋 Pry-byetypo: autocorrects typos in your Pry console.
Pry-byetypo is a gem that captures exceptions that may arise from typos and deduces the correct command based on your database information and session history.
How to host a Ruby Coderetreat Workshop for Game of Life challenge at a regular Ruby
Coderetreat is a full day practice workshop, which could be also shorten to 4-hours-long, intensive practice event and it would perfectly fit to the format of a regular Ruby Meetup. The Coderetreat event has a standard format, even though there are different forms and flavors. We usually use Pair-Programming and Test Driven-Development to implement Conway’s Game of Life and delete your code at the end of each session. [more inside]
How to Dual Boot Your Ruby or Rails Application with Different Versions of Ruby
Dual booting Ruby is similar to any other dependency, but there are some important differences that we need to address to do it right. There are more ways to do this but we try to minimize the disruption to the normal development workflow as much as possible. With these ideas you can default to use the current Ruby version while also being able to use the next version on demand with a few commands. [more inside]
How to debug issues with Turbo Morphing
I collected some tips I found very useful when debugging strange Turbo Morph related issues. I hope they can save you some time when you run into your issues: How to debug issues with Turbo Morphing
The simplest turbo-frame example
Convention over configuration is powerful, but doesn’t help when you’re not sure anymore about conventions ;) So here is a quick memo. [more inside]
Chartkick and turbo frames - elevating rails visuals
Update: Rabarber Gem - Simplified Authorization for Rails
Some time has passed since we first introduced Rabarber, our role-based authorization library for Ruby on Rails. If you're on the lookout for another option for managing user access in your Rails applications, Rabarber might be worth checking out. [more inside]