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.
Yesterday
How to Create Dynamic Form Fields in Rails with Auto-Updates with Hotwire, StimulusJS
Have you ever needed to create dependent fields in a form? Selecting a Country, updates the States select. Or if you select a role (standard/manager/admin) it loads specific fields for the role. [more inside]
10 Best AI Tools for Ruby on Rails 8 Development in 2024
I recently started using Codeium to get suggestions while coding. However, I want more AI power thus I compiled a list of tools. My Latest Blog Post on 10 Best AI Tools for Ruby on Rails 8 Development in 2024. Hopefully, It helps you too.
The state of security in Rails 8 - Rails World 2024
The recording of my Rails World talk is online on YouTube now! [more inside]
Full-stack run of Hanami application - CRUD blog screencast!
Hanami 2.2-beta2 is relased, which finally becomes a complete, full-stack framework. Let’s make a blog in Hanami taking a closer look at its basic features! [more inside]
The Seventh Gosu Game Jam starts this Weekend!
The Gosu game library’s community is hosting the seventh Gosu Game Jam, on Itch.io, starting this weekend and running through Oct. 27th.
Simplify and Speed Up Development of Rails Controllers
Handling filter parameters for index endpoints in Rails controllers can often be a repetitive and error-prone task. Check out this overview of the Filterameter gem to find out how to write cleaner and more maintainable code by declaring filters.
We have open sourced our Job Board app built on Rails 6
Clone or Fork Open source Job Board MVP built on Rails 6. Soon to be upgraded to Rails 8.
Montreal.rb October 2024 - Tame Complex Queries with Database Views
PostgreSQL views are a useful tool to make query logic reusable and maintainable. This talk will cover their pros and cons, a couple of real-world use cases, and how to use them in Rails apps using the Scenic gem: https://www.youtube.com/watch?v=gdrscLBNvDo&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=14 [more inside]
Mastering custom configuration in Rails
In this latest Joy of Rails article, I describe how to add your own configuration options to a Rails app including a deep dive into ActiveSupport::OrderedOptions and the built-in X-factor: “config x”. [more inside]
Interfacing with external APIs: the facade pattern in Ruby
Interacting with third-party APIs is common practice in applications. But do you prevent sprinkling calls across your codebase, duplicating logic and reinventing the wheel? This is where the structural design pattern called facade comes into play.
This example app configures ActionText with ActiveAdmin v4
https://github.com/bestwebventures0/activeadminv4-examples/tree/main/faqstiger. ActiveAdmin4 uses Tailwind and Flowbite by default and would be the best fit for building super admin for your Rails 8 apps.
InvoicePrinter 2.4.0 is out
I released a new version of InvoicePrinter, the super simple invoicing library for Ruby.
Oktest 1.5.0 Released
Oktest 1.5.0 Released. Oktest is a new style testing library. It has several useful features such as fixture injection, JSON matcher, or partial regexp. [more inside]
JavaScript is a disease! Ruby is the cure!
In a recent Ruby meetup, I called JavaScript a disease! It is true! Especially, when comparing JavaScript code to much better, more elegant, and more readable Ruby code! JavaScript looks like ugly smelly mold by comparison. Once you see it, you can never unsee it! Yahuda Katz mentioned in his keynote speech at RailsConf 2014 that by continuously building more floors for the lower levels of a building in the form of a framework and a community of open-source projects, we enable developers to start development at higher and higher levels than they would have been able to otherwise, thus helping them leapfrog earlier ways of development in ever increasing productivity! In 2024, Frontend Ruby is the next floor level that enables Ruby Software Engineers to start at a higher level of development with much higher productivity and maintainability. [more inside]
Build Magic link authentication for Devise natively in Rails 7.1 thanks to generates_
Rails 7.1 introduced several new features, but the one we’re focusing on here is the generates_token_for method. This feature is particularly useful because it lets us create signed tokens with expiration dates, all without needing to modify the database. [more inside]
CLIApp 0.2.0 Released
I released CLIApp 0.2.0. CLIApp is a small framework to create CLI applications that take actions (=subcommands) such as Git, Docker, RubyGem, etc. In this release, help messages are printed in color.
Understanding the 3 Solids in Rails 8: SolidQueue, SolidCache, and SolidCable
Read this blog post to understand the 3 solids in Rails8 .. Understanding the 3 Solids in Rails 8: SolidQueue, SolidCache, and SolidCable
How CDNs Work (Propshaft / Static Assets Pt. 2)
Welcome back for part two of assets, static files, browser delivery, and Propshaft! In part one we… https://judoscale.com/blog/propshaft-part-2-cdns
Hello-Ruby-Boilerpl8 0.3.0 Released
hello-ruby-boilerpl8 0.3.0 released. This repository (not gem package) provides Ruby project boilerplate (or template) for simple command line script. See README for details and changes.