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.
A closer look at Rails force_ssl and assume_ssl
Understand more about force_ssl in Rails.
Glimmer DSL for Web Component Custom Event Listeners / Component Slots / Default Slot
Glimmer DSL for Web (Ruby-in-the-Browser Web Frontend Framework) recently added support for Component Custom Event Listeners, Component Slots, and Default Slot in the 0.5.x & 0.6.x version releases. The new samples Hello, Component Slots!, Hello, Component Listeners!, and Hello, Component Listeners (Default Slot)! have been added as well and can be played around with in an online hosted Rails Sample Selector web app. [more inside]
What is Rack
This blog post explains what are Rack servers, Rack applications and Rack middleware by building one of each from scratch. [more inside]
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.
What is a Mind
Minds support with ruby sdk [more inside]
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]