In my recent project, I faced a challenge with broadcasting comments in a Ruby on Rails application using Hotwire. The goal was to ensure that unpublished comments would only be visible to the user who created them, while published comments would be visible to everyone. Here’s how I tackled this issue.
In this blog post, I will walk you through the process of integrating Nostr login functionality into my Rails application using the Nos2x extension. This involved modifying the Devise User model, adding a new route to handle Nostr users, and integrating JavaScript to enhance the login experience.
In web development, an efficient and user-friendly search function is essential for a good user experience. While working on the “In Archives” project, I initially cached the dataset without pagination, which led to poor performance—eight times worse than expected—because pagination was applied to the entire cached dataset.