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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
I really like enums. They can be really powerful if they are used wisely. Let’s see what we can do with them in a multilingual Rails app with a little help from PORO (Plain Old Ruby Object). https://petr.codes/blog/rails/fun-with-enums-and-poro/
Hear two rubyists discuss how to handle background job processing: https://www.rubberduckdevshow.com/episodes/14-background-job-processing/
The Cuprite driver is a very nice replacement for Selenium in your system tests. It speeds up the suite considerably and its API is clean and versatile. The article shows some numbers and a few issues that we hit during the migration as well as their possible fixes. [more inside]
The #descendants method is part of Rails. It returns all subclasses that inherit from a given class. In this article, Jonathan Miles shows us how to use this method and how it’s implemented. It’s a great lesson in the ins and outs of Ruby’s object model. https://www.honeybadger.io/blog/hidden-gems-activesupport-descendants/
In this episode, we look at creating a middleware to track errors to publish to another error “from scratch” error monitoring application. https://www.driftingruby.com/episodes/error-tracking-from-scratch
0.18.0 Features Response Cache [more inside]
CDNget is a small tool to download files from public CDN, such as CDNJS, jsDelivr, UNPKG, or Google. Release 1.0.0 improved download performance. See README for details. https://github.com/kwatch/cdnget/tree/ruby-release
In this new Hanami Mastery Episode, I showcase the complete persistence layer of a Hanami 2.0 application. YT video guide included! [more inside]
Hear two rubyists discuss the differences between REST and GraphQL APIs: https://www.rubberduckdevshow.com/episodes/13-rest-vs-graphql-apis/
Hello, Inspired by Damien Hirst’s “The Currency” art (token) parody / 40+ million $$$ cash grab I have created an all new /currencyart-howto repo that collects getting started guides (and scripts) - yes, in ruby - for creating your own free (modern dotty spotty) currency art in retro pixel bitmap raster format or in hi-definition (hi-def) XXXL poster-size quality vector graphics format. Happy pixel pushing and art programming in ruby.
This tutorial shows how to create a project with Rails 6.1 and its default Webpacker version (4.5), and configure Tailwind CSS with its dependencies and JIT mode enabled. You’ll end up with a project that compiles the final CSS automatically, and refreshes the browser for you as well, after every change.
If someone steals your password, they can pretend to be you. That’s why many companies provide two-factor or multi-factor authentication via a fingerprint scan, a YubiKey, an authenticator app, or SMS. In this article, Petr Hlavicka will give you a solid foundation of knowledge about multi-factor authentication and will walk you through implementation with Rails, Webauthn, and Devise https://www.honeybadger.io/blog/multi-factor-2fa-authentication-rails-webauthn-devise/
Hear two rubyists discuss programming with dates, times and zones: https://www.rubberduckdevshow.com/episodes/12-programming-with-dates-times-zones/