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.
Testing Inherited Behavior
Recently I asked how people prefer to see inherited behavior tested. This discusses each of the options in more detail and shows the results of the poll. https://kevinjmurphy.com/posts/testing-inherited-behavior/
Glimmer DSL for SWT 4.28.0.0
Glimmer DSL for SWT 4.28.0.0 (JRuby Desktop Development Cross-Platform Native GUI Framework) is the quarterly major release that happens after a new version of Eclipse SWT (Standard Widget Toolkit) is released. It is wrapping SWT 4.28, which was released on June 5, 2023. Read more
Master records selections in Rails app with SQL window functions
Learn how to use row number window function on a practical example to select unique latest grouped records from DB. Read more
Your journey as a mid-level Ruby on Rails developer
Get on board and let’s sail beyond the horizon. Read more
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:
Deep Dive into RSpec's let Helper
Advanced usage of let helper in RSpec:
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. Read more
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:
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? Read more
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
How to use cocoon gem in Rails 7?
How to use cocoon gem in Rails 7?
Modifying Action Text markup - Rails Tricks Issue 14
The latest issue of Rails Tricks is out. Showing how to modify Action Text markup:
Background Jobs and Task Scheduling in Ruby on Rails
Background Jobs and Task Scheduling in Ruby on Rails
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.
Feature flags in Rails: How to Deploy, Test & Manage
Feature flags in Rails: How to Deploy, Test & Manage
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. Read more
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:
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.
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. Read more
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.