RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Configuring Rails to use HTTPS in local development

Ever wanted to access a Rails app locally over HTTPS? There is a gem called localhost that can make this remarkably easy. However, everyday development using HTTPS requires a few more steps. This post explains how to set up the localhost gem, how to start Rails properly, and how to update OpenSSL to trust the local certificate. Plus, for those of us using Vite as their frontend build system, this post explains how to secure the Vite dev server as well. https://mattbrictson.com/blog/rails-vite-localhost-https

Ruby Retry But Better: Faraday Loop

Ever need a simple way to retry a block of code? Maybe you need a maximum number of retries? Exponential backoff? Different handling for different exceptions? We took the Faraday Retry Middleware which is pretty awesome and just hoisted it up into its own utility without actually using/needing Faraday: Faraday Loop

7 Common Mistakes in Rails Upgrades

Ruby on Rails is a popular web application framework that is constantly evolving with new versions being released frequently. While upgrading to a newer Rails version can bring new features, better performance, and security patches/improvements, it can also be a challenging task. [more inside]

Configuring RuboCop to scan the right files in a Rails project

Despite using RuboCop for years, I was recently surprised to find that it was not scanning certain important files in my Rails project. When I dug further, I discovered that RuboCop’s system for configuring inclusion and exclusion rules is quite complicated and exhibits some of the infamous “Rails magic”. What started out as a simple question – why isn’t RuboCop checking my bin/setup script? – turned into hours of troubleshooting. Here’s what I learned: https://mattbrictson.com/blog/including-and-excluding-files-in-rubocop

Rice 4.1 (Creating Ruby bindings for C++ libraries)

Rice makes it much easier to wrap C++ APIs - it is the Ruby equivalent to PyBind11. Get started with the tutorial at https://jasonroelofs.com/rice/4.x/tutorial.html. After you are done with the tutorial, there is extensive documentation about how to wrap C++ libraries - see https://jasonroelofs.com/rice/4.x/bindings.html. The Rice authors would love to see more Ruby bindings to C++ libraries and are happy to offer pointers as needed - please submit tickets on Github.

All of the included links are 404. Could you please take a look into this issue…
@GABOR: Thanks for pointing it out, it is fixed now ;)
Loading older posts