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.
[ANN] httpx 0.24.0 released
httpx 0.24.0 has been released. [more inside]
A new release or rails_performance gem
Here are the new features added: [more inside]
Deploying a Rails app with MRSK
I wrote an article about deploying a Rails app to a VPS with MRSK. Using Caddy in front of the Rails server and running a Sidekiq worker on the same host.
Setting Up Business Logic with DCI in Rails
In part two of this series, we’ll organize business logic in your Rails application using DCI:
Clean FactoryBot with FactoryTrace
Are you a user of FactoryBot? [more inside]
Fortify Rails Security Webinar
On Monday June 12th, 2023, FastRuby.io partnered with Expedited Security to talk about how to secure your Ruby on Rails application. [more inside]
Readonly Associations and Upgrading to Rails 4
After upgrading your application from Rails 3 to Rails 4, you might start seeing the following deprecation warning if you are using the readonly option in an association. [more inside]
Enforcing an API Rate Limit in Sidekiq 7
I discovered an easy way to implement job throttling using the ruby-limiter gem and the new “capsules” feature of Sidekiq 7.
How to Authenticate to Postgres from Rails using an SSL certificate
Rails configuration settings needed to authenticate to Postgres with an SSL/TLS certificate. Both locally and on Heroku, while keeping your private key secure: How to Authenticate to Postgres from Rails using an SSL certificate
Palantir & Testing in Dragon Ruby with Kevin Fischer | Rubber Duck Dev Show 88
In this episode, we discuss discuss Palantir & testing in Dragon Ruby with Kevin Fischer:
Blue Ridge Ruby 2023 Recap
Last week at Blue Ridge Ruby, we heard a lot of great talks. I compiled a brief summary of the program. [more inside]
Interesting JavaScript Features from a Ruby Perspective
I started relearning JavaScript and thought to share the differences I picked up on. [more inside]
Rails testing snippets for VS Code now available
I finally got around to porting my collection of snippets for RSpec, Capybara, and FactoryBot from Atom to Visual Studio Code. Everyday Rails RSpec snippets for Visual Studio Code is now available in the marketplace. Useful for me, maybe useful for others!
Optimize Rails app performance with ChatGPT
We discussed my previous post about optimizing the performance of a Rails application with SQL within the Belarus User Group. During the discussion, we also had some fun experimenting with ChatGPT, asking it to solve the same problem. The results were impressive. I shared the outcome in this post: [more inside]
Euruko 2023 Conference in Vilnius
The First and Oldest Ruby Conference in Europe celebrates its 20th year anniversary. This year holds even greater significance as we also commemorate Ruby’s 30th birthday and the 700th anniversary of Vilnius. [more inside]
The 3 Vite plugins I use on every new Rails project
I’ve completely switched away from Sprockets and Webpacker and am using Vite for my current Rails projects. One thing I’ve discovered is that while the default Vite-Rails installation is nice, it is not very opinionated. I always end up adding these three plugins on top of the standard Vite-Rails config: autoprefixer, rollup-plugin-gzip, and vite-plugin-full-reload. Here’s how to set them up:
PullPreview - GitHub action to start preview deployments on AWS
PullPreview is a GitHub Action written in ruby that starts preview deployments for your pull requests and branches. It can work with any application that has a valid Docker Compose file.
The Making of Avalon in Dragon Ruby with James Stocks | Rubber Duck Dev Show 87
In this episode, we discuss the making of Avalon using Dragon Ruby with James Stocks:
5 Tips for new Rails developers
5 tips for new Rails developers to be more productive and confident. [more inside]
[Screencast] Episode #404 - Page Not Found
In this episode, we take a few different approaches in how we display error pages in our Rails application. We’ll also look at a few potential problems with each approach that we need to be aware of. https://www.driftingruby.com/episodes/page-not-found
Hotwire: Reactive Ruby on Rails Applications
I’m happy to share a 24h complete access to my new course on LinkedIn Learning: [more inside]