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.
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]
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.
🇺🇦 New version of truemail 📤 has been released 🚀
In the latest truemail release has been added ability to use custom logger for event logging. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.
Upcoming March 2024 Montreal.rb Talk "Frontend Ruby with Glimmer DSL for Web"
I will be giving a Montreal.rb Ruby meetup talk titled “Frontend Ruby with Glimmer DSL for Web” on Wednesday, March 6 2024 at 7pm ET (doors open at 6:15pm ET). The event will be hosted at Lexop (Montreal, Quebec, Canada). Click below to read the talk description. In my opinion, this is the most exciting Ruby topic in 2024 for doubling productivity and halving cost and time in developing and maintaining Rails Frontends compared to using inferior JS technologies like React, Angular, Vue, Svelte, etc… I strongly believe this will be the most important Ruby investment in 2024. Anyone who ignores it will be stuck in what is like the Ice Age of Frontend Development by comparison, kinda like riding horse carriage compared to driving a Ferrari.
Shrinking UUIDv7 Primary Keys
Using UUIDv7 instead of serial integers as primary keys in SQL databases comes with quite a few advantages. There’s a price tag in terms of speed and memory… whether acceptable or not, that’s your call. But at least you don’t have to live with those UUIDs eating up 36 characters in your URLs Honey, let’s shrink them UUIDs!
Rails 7.1 Allows ActiveRecord::Relation#explain To Accept Options
Rails 7.1 introduces analyze and verbose as ActiveRecord::Relation#explain options to give us deeper insight into query performance. [more inside]
Two insights from using Sorbet in a production app
I wrote a small article about two insights I had about using Sorbet in a large Rails app:
[PODCAST] Andy Croll & Ufuk Kayserilioglu Uncover RailsConf 2024 Details
The conversation covers various aspects of RailsConf, including its mission, organization, and selection process for talks. The chapters delve into the background of the participants, the role of Ruby Central in organizing RailsConf, and the significance of the conference in the Ruby and Rails communities. The discussion also explores the unique features of RailsConf 2024, such as the community day and hack day, as well as the selection process for talks and the responsibilities of the program committee. Additionally, the conversation touches on the criteria for choosing conference locations and the process of selecting keynote speakers. In this conversation, Emmanuel Hayford interviews Andy Croll and Ufuk Kayserilioglu about their experiences with conferences like RailsConf and Brighton Ruby. They discuss the acceptance and rejection process for conference speakers, the origins and purpose of Brighton Ruby, the importance of personal interaction at conferences, the dynamics of partnering with hotels, the sponsorship opportunities for RailsConf, and the benefits of attending conferences for personal and professional growth. [more inside]