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.
Business Class, a Ruby on Rails SaaS kit, goes 1.0!
Business Class is finally released! Read the announcement: https://nts.strzibny.name/business-class-brand-new-rails-saas-template/ Watch the demo: https://www.youtube.com/watch?v=s8mM5-snTig Browse the features: https://businessclasskit.com
Deep Dive into RSpec's let Helper
Advanced usage of let
helper in RSpec:
https://dev.to/povilasjurcys/deep-dive-into-rspecs-let-helper-4gkk
Building AI applications with Ruby and Open Source LLMs
Today, I am releasing a new Ruby gem that allows you to create AI applications using Ruby, Aoororachain. [more inside]
An Introduction to Devise for Ruby on Rails
In part one of this series on Devise, we’ll cover the basics of the Devise gem: https://blog.appsignal.com/2023/07/12/an-introduction-to-devise-for-ruby-on-rails.html
About Ruby: pass by value or pass by reference?
I tried to refresh in this article the answer to the question: Is Ruby pass by value or pass by reference? [more inside]
Support for picture_tag helper in Rails
picture
tag now ships with inbuilt support in Rails. Take a look at some examples and why picture
is useful for web responsive applications https://blog.saeloun.com/2023/07/12/picture-tag-rails/
Modifying Action Text markup - Rails Tricks Issue 14
The latest issue of Rails Tricks is out. Showing how to modify Action Text markup: https://greg.molnar.io/blog/rails-tricks-issue-14/
Rails Generate Migration — Everything you need to know 🦆
I’ve written a handy reference article for the next time you’re generating a migration in your rails app — Rails Generate Migration — RailsNotes
How to use enum attributes in Ruby on Rails
Dive into the world of enums to discover how they can streamline your code and make it more readable. Learn best practices, how to add and manage enum attributes, and take advantage of Rails’ built-in features to efficiently manage finite sets of values in your models. https://www.honeybadger.io/blog/how-to-use-enum-attributes-in-ruby-on-rails/
Glimmer DSL for LibUI Composite Shape
Glimmer DSL for LibUI 0.8.0 (Fukuoka Award Winning Ruby Desktop Development Cross-Platform Native GUI Library) has been released with a new feature called Composite Shape (already in Glimmer DSL for SWT), which enables building new visual concepts by aggregating multiple smaller shapes within a parent composite shape using relative positioning and inherited fill
/stroke
colors. [more inside]
What is the difference between Turbo and Stimulus, and what exactly is Hotwire?
Explainer for folks who need to get caught up on modern front-end concepts in Rails: https://www.ducktypelabs.com/turbo-vs-stimulus/
Fixing mysql index deadlock issue in rails application
In this blog post I discussed one of the common MySQL index deadlock issues that had occured in our rails application. https://www.elitmus.com/blog/technology/debugging-and-fixing-mysql-deadlock-issue/
Import Spreadsheets in Ruby on Rails with Flatfile.com
The video and slides for the Montreal.rb July 2023 talk “Import Spreadsheets in Ruby on Rails with Flatfile.com” have been posted. [more inside]
devise-otp 0.6.0 is out!
I am releasing devise-otp 0.6.0 today. It features a fix for mandatory OTP setting, removal of the success message for better UX and you can now use it with older Rails 6.1 too. If you want to skip building up all these 2FA flows, consider getting Business Class for your next project.
A comparison of multiple generative AI tools when asking for Ruby on Rails code
I wrote a comparison of various AI generative code tools that I asked to transform a simple HTML code into a Rails helper.
Pattern Matching on Ruby Objects
I wrote https://fly.io/ruby-dispatch/pattern-matching-on-ruby-objects/ to show people how they can implement pattern matching in their Ruby objects that with with case ... in
statements. Use it in your very own HTTP routers, Rack middleware, Rails apps, authorization objects (like Pundit), consume APIs, or parse files!
A new version of actual_db_schema
A new version of actual_db_schema gem has just been released https://github.com/widefix/actual_db_schema it contains a major fix that rolls back applied migrations in the reversed order. Big thanks Arkadiy Zabazhanov (https://github.com/pyromaniac) for contribution! #actual_db_schema
Bearer, a full-stack open source code security scanner for Rails application
Introducing Bearer, a comprehensive security scanner for your Rails application that offers an alternative to Brakeman. Bearer goes beyond just scanning your Ruby code; it also includes the ability to analyze your JS/TS code, making it an all-in-one solution. With Bearer, you also gain access to a distinctive set of rules designed to address privacy risks and prevent sensitive data exfiltration. [more inside]