November 25, 2024 Semantic search is a transformative approach to searching data, designed to understand the meaning behind the words rather than just exact matches. In this article, we explore building a semantic search feature using Rails, OpenAI, Langchain.rb, and PG Vector. This journey will cover everything from setting up the project to implementing the … Continue reading Building Semantic Search with Rails, OpenAI, and PG Vector
Author: ggerman
Better Rails Forms with Superform: A Game-Changer for Developers
November 26, 2024 Rails developers often rely on traditional form helpers to build forms, but these tools come with limitations, especially when it comes to customization and managing strong parameters. Superform, a new library built on top of Phlex, offers a fresh approach to creating Rails forms. It simplifies the process, allowing forms to manage … Continue reading Better Rails Forms with Superform: A Game-Changer for Developers
Mastering API Testing in Ruby on Rails: A Practical Guide to Stubbing and Assertions
November 25, 2024 In software development, particularly when working with Ruby on Rails, testing external API calls is a crucial step in ensuring that your application behaves as expected. External calls, such as requests to third-party services, can be unpredictable and slow, making them impractical for running unit tests. In this post, I'll walk you … Continue reading Mastering API Testing in Ruby on Rails: A Practical Guide to Stubbing and Assertions
Building a Simple Chatbot with Ruby on Rails and Turbo Streams
November 26, 2024 In this article, we will guide you through the process of building a simple chatbot using Ruby on Rails, Turbo Streams, and OpenAI’s API. The chatbot will allow users to interact with each other by storing chat messages in a database and displaying them dynamically on the web page. We'll also introduce … Continue reading Building a Simple Chatbot with Ruby on Rails and Turbo Streams
Building the Perfect Docker Image for Your Rails App
November 27, 2024 In the world of modern web development, Docker has become a staple tool for creating consistent, isolated, and portable environments. However, when it comes to Dockerizing your Rails application, it’s crucial to build an optimized Docker image to ensure fast builds, minimal image sizes, and secure deployments. In this guide, we’ll walk … Continue reading Building the Perfect Docker Image for Your Rails App
Zeitwerk: The Autoloader That Rails Deserves, But Not the One It Needs Right Now
February 5, 2025 Introduction Since Rails 6, Zeitwerk has been the default code loader, replacing the older classic autoloader. Designed for modern applications, Zeitwerk provides constant resolution efficiency, thread safety, and namespace-aware autoloading, making it a must-know tool for advanced Rails developers. However, while Zeitwerk works seamlessly in most Rails projects, deep expertise is required … Continue reading Zeitwerk: The Autoloader That Rails Deserves, But Not the One It Needs Right Now
Building Dynamic API Clients in Ruby with Rails and Thor
November 22, 2024 When working with APIs in Ruby, we often find ourselves writing repetitive code for client interfaces: methods for fetching, creating, updating, and deleting resources. What if we could streamline this process with dynamic method generation and customization? Using Rails generators and Thor, we can create flexible, reusable API clients that cater to … Continue reading Building Dynamic API Clients in Ruby with Rails and Thor
Understanding Action Cable in Ruby on Rails: A Comprehensive Guide
November 22, 2024 Action Cable is a powerful framework in Ruby on Rails that allows for real-time features in web applications using WebSockets. It integrates seamlessly with Rails, making it easy to add real-time capabilities like chat, notifications, and live updates without losing the elegance and scalability of Rails. This article delves into the core … Continue reading Understanding Action Cable in Ruby on Rails: A Comprehensive Guide
🚀 Exploring Rails 8: Innovations, Fixes, and Fun Updates
November 21, 2024 Rails enthusiasts, buckle up! Rails 8 is here, and it’s bringing more features than a Swiss Army knife. From revamped demos to multilingual Rails World videos and quirky updates, this week’s news is packed. Let’s dig in—metaphorically, of course; our keyboards are not shovels. Rails 8: A Demo That Packs a Punch … Continue reading 🚀 Exploring Rails 8: Innovations, Fixes, and Fun Updates
Performance Guide: Creating 100k Records in Less Than 3 Seconds with Ruby on Rails
November 21, 2024 Working on large-scale projects often requires generating substantial amounts of test or dummy data efficiently. In this tutorial, we’ll explore various methods to create 100,000 records in Ruby on Rails while benchmarking their performance. This article is inspired by the text Performance Guide to Create 100k Records in Less Than 3s Using … Continue reading Performance Guide: Creating 100k Records in Less Than 3 Seconds with Ruby on Rails









