About:
Steve Polito is a full stack web developer in the Boston Area, writing about Ruby on Rails.
Website:
Outgoing Links:
Subscribe to RSS:
The blog post discusses the importance of filtering sensitive information from free text, particularly in the context of chatbots and large language models (LLMs). It introduces a tool called Top Secret, which combines regex patte...
The article discusses the complexities involved in designing a join code system for multiplayer quiz games. It highlights the importance of creating short, easy-to-type codes while addressing potential issues like collision probab...
Effective rate limiting for chat bots is crucial to prevent service disruption, and the post provides practical strategies and code examples for managing user requests and token usage.
The text discusses the default parameter filtering in Rails to prevent logging sensitive information, the need to encrypt sensitive data, and the use of an allow list for filtering. It also covers the responsibility of filtering s...
The author discusses using Rails Runner to explore network requests and create a fast feedback loop, allowing for effective idea exploration and code reusability.
The text discusses how to respect OpenAI's rate limits in Rails. It explains the different rate limits, headers returned when a limit is exceeded, and how to handle rate limit errors. It also suggests being proactive by examining ...
The tutorial explains how to build a fully animated drawer component without using JavaScript, leveraging Hotwire to increase its fidelity. It covers creating a faux drawer, rendering the drawer on the current page, and animating ...
The text discusses how to improve the user experience on a client project by backgrounding a slow network request and broadcasting the response to the browser asynchronously with Turbo. It outlines the process of making a request,...
The text is a tutorial on how to build a better search form in Rails with Active Model. It includes refactoring a custom search form on a client project, extracting logic into a model, and simplifying the form by passing in the ne...
The text discusses the need to conditionally render a Turbo Frame in Rails when reusing partials and views, particularly in the context of inline editing. It provides examples and solutions for rendering Turbo Frames based on spec...
The text is a pragmatic guide for adding React to an existing Rails application while still using Hotwire. It discusses the integration of React and Rails on a spectrum, from using an API only Rails application to adding React to ...
The text explains how to configure GitHub Actions to work with rspec-rails. It includes a CI template that will run the Rails test suite, issues encountered, and how to build the CI script.
The text discusses advanced routing constraints in Rails, specifically focusing on restricting access to admin routes based on IP address. It explains the process of creating a custom constraint, consolidating constraints, and upd...
The text discusses the issue of polymorphic relationships not being correctly enforced in a client project. It provides a solution using unique indexes and validates_uniqueness_of validation, but also highlights the limitations of...
The text discusses the creation of a database view to allow the data team to query directly, while also allowing the application to use that view in the existing scope. It also talks about the trade-offs of using a database view a...
The <button> element is a robust, versatile and under utilized tool. It can be used outside of a <form> and still submit the form. It can be used to delete payment methods. The formaction attribute overrides the parent form’s acti...