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.
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 https://dev.to/kopylov_vlad/why-i-love-ruby-44g9
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. https://danielabaron.me/blog/rails-kafka-consumer/
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: https://nkokkos.hashnode.dev/how-to-use-tomselect-javascript-library-to-create-and-edit-abelongsto-many-relation-with-ruby-on-rails 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 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
Chartkick and turbo frames - elevating rails visuals
https://veelenga.github.io/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]
Why I’m using justfiles in my Rails apps
Here’s how I’m using the just command runner to build consistent developer experiences across Rails apps, and why you might consider doing the same. https://everydayrails.com/2024/02/24/rails-just-commands