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.
Transcribing with Artificial Intelligence
In this episode, we look at creating an audio transcription service which allows files uploaded from Active Storage to be transcribed with Artificial Intelligence. However, there are a lot of considerations around the approach from both a performance and thread safety perspectives. https://www.driftingruby.com/episodes/transcribing-with-artificial-intelligence
[ANN] rodauth-oauth 1.3.0 released - self-signed issued tokens, JARM
rodauth-oauth 1.3.0 has been released. [more inside]
new release of "rails_performance" gem
https://github.com/igorkasyanchuk/rails_performance is a plug&play solution to monitor the performance of your production Rails application. Similar to NewRelic/DataDog/etc, but self-hosted (works as Rails engine), and using only Redis as a dependency. [more inside]
Deploying an app with Mrsk onto a single VM
I’ve deployed/migrated one of my apps with rails/mrsk onto a simple single host - with recipes for with asset caching & remote build & sidekiq & cronjobs. [more inside]
Make your Ruby on Rails app 80x faster with SQL
Recently, I came across a piece of Ruby on Rails code that I rewrote and made 80x faster. Check out how I did it. [more inside]
New gem job_enqueue_logger - logs background jobs enqueued by your application
https://github.com/fatkodima/job_enqueue_logger - idea similar to SQL query tracer, but for background jobs. [more inside]
Rails 7.1 Improves Support for Custom Namespaces
This patch improves the support for defining custom namespaces while autoloading files.
RuboCoping with legacy: Bring your Ruby code up to Standard
Pretty much every Rubyist knows RuboCop—it’s the Ruby linter and formatter. But it’s still easy to find projects where style wasn’t enforced from the start (usually large, older projects). Fixing these can be tough. [more inside]
Two Different Approaches to Upgrade Rails by FastRuby.io
In this article I explain how we approach Rails upgrade projects for two different types of applications: [more inside]
Middleware to block ChatGPT created by ChatGPT :)
https://github.com/railsjazz/chat_gpt_blocker is a bit funny project, assuming it was created by ChatGPT. Some websites should be ready to block access from the bot.
Pairing with GPT-4 on a Ruby Project
I wrote about what it’s like pairing with GPT-4 on a ruby Ruby at https://fly.io/ruby-dispatch/pairing-with-gpt-4/. Turns out the more you know about Ruby, the better your experience will be working with GPT-4 since it can send you down some pretty crazy paths. If you’re starting out, it can still give you pretty good results if you don’t ask it to build stuff for you. Overall, it’s more pleasant than using a search engine for help because you don’t have to wade through ads and SEO content that’s not helpful.
Software Project Checklist - Based On Rails by Hix.dev
How to test your Rails models with RSpec
Today, we keep digging into RSpec fundamentals with an extensive tutorial on how to test your Rails models with RSpec. How to test your public methods? Should you test your private ones? Is code coverage really a thing? Hope you’ll like it!
Keeping the Email Sending Equilibrium with ActionMailer Balancer
ActionMailer Balancer allows proportionally distributing the email sending load between two different sending services and keeping the sending equilibrium in the percentage you need and set up for yourself. For example: SendGrid 70% / Mailtrap 30%. or Postmark 60% / Mailgun 40%. Learn more in the article.
All about "Data" Simple Immutable Value Objects in Ruby 3.2
In Ruby 3.2, a new keyword Data was introduced as a way to define simple immutable value objects. Find more about it here: https://blog.kiprosh.com/ruby-3-2-data-simple-immutable-value-objects/
HMVC-Rails gem - Helping you build High-level MVC architecture
Hello everyone. Have ever you heard about or use Trailblazer gem? HMVC is an architecture based on it. To reduce time to initial a project, our team released this gem called HMVC-Rails. Hope it will create a new popular architecture for not only Ruby on Rails community but also other ones [more inside]
Authorization Gems in Ruby: Pundit and CanCanCan
Let’s take a look at Pundit and CanCanCan, two of the most popular authorization gems in Ruby: https://blog.appsignal.com/2023/03/22/authorization-gems-in-ruby-pundit-and-cancancan.html
Introducing Parklife
Parklife turns any Rack app (Rails, Sinatra, Hanami, Roda, Camping) into a static HTML build ready to be hosted on GitHub Pages, Netlify, Now, S3, or any other web server. Keep working with the frameworks you already know and love but instead of deploying and managing a server-side Ruby app generate a static build that can live indefinitely with no maintenance cost. https://www.benpickles.com/articles/90-introducing-parklife