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.
When dry-struct is good
An article of use cases of dry-struct/dry-schema in my experience: https://railsguides.net/dry-struct-use-cases/
New release Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Implemented internationalized emails (EAI) supporting. Be sure that email address valid and exists. https://github.com/rubygarage/truemail Happy New Year!!!
Ruby 2.7 comprehensive changelog
The Ruby Changes (open, structured, explained and cross-linked changelogs for Ruby) updated to include all Ruby 2.7 changes with all the “why”s, “how”s and links to docs and discussions!
How to execute Arel queries
Plenty of resources explain why using Arel is a good option, but it is hard to find an explicit guide on how to use the queries you can build with Arel. This article is one of them
Ruby 2.7 experimental pattern matching in few examples
I got so excited about today released Ruby 2.7.0 experimental pattern matching feature I wrote article describing it in few examples.
I created the same app with Rails and Javascript
A few days ago, I came into a post on Medium “I created the exact same app in React and Svelte. Here are the differences”, this post talks about side by side code comparison on writing a simple To Do application with both Javascript Framework. [more inside]
How to add FriendlyId to your Rails 6 application
Make your Ruby on Rails URLs SEO friendly with FriendlyId and a reusable concern.
Debug Rails issues effectively with tapping_device
Debugging large Ruby applications or libraries could be a painful process, but it doesn’t have to be this way. A few months ago, I wrote a gem called tapping_device to make debugging Ruby programs “a lot” easier. [more inside]
Better File Uploads with Shrine: Eager Processing
Shrine’s “eager processing” feature allows us to generate and store a set of processed files (e.g. image thumbnails) derived from the attached file. In this article we’ll show how this feature is designed, how does it stand out from alternatives (Paperclip, CarrierWave), and some neat use cases it enables.
Importing images with Webpacker
An unofficial guide demonstrating how to reference Webpacker images from your JavaScript, CSS, and Rails views. https://rossta.net/blog/importing-images-with-webpacker.html
New strings-numeral gem release
The strings-numeral helps you express any number as a word numeral like cardinal, ordinal, roman and monetary. Enjoy!
Sending and tracking faxes in Ruby
Yes, faxes are a relic, but I had to send one this week so I built an app. It covers file input, uploading and serving in Sinatra and using the Twilio API to send a fax. And if you ever need to send a fax (it happens, apparently) this is how you can do it and make sure it arrived.
Ruby on Rails with Visual Studio Code in 2020
Discover how to customise Visual Studio Code for efficient Ruby on Rails development with extensions, themes and tasks.
_why interviews DHH
In the latest edition of PastRubies, we see a fantastic 2004 interview with two Ruby legends. http://www.pastrubies.com/
Rails Development with Docker
In this guide, we will cover the basics of our Docker development environment for Rails. https://hint.io/blog/rails-development-with-docker
Sidekiq::Undertaker
Sidekiq::Undertaker is a plugin for Sidekiq. It allows exploring, reviving (retrying) or burying (deleting) dead jobs. For easy exploring the dead-jobs queue is broken down into time windows (buckets) of hours, days and weeks. [more inside]
Organize your Ruby code using blocks
Real world refactoring example (after code review), where happy path is made obvious through block usage. https://medium.com/@apneadiving/organize-your-ruby-code-using-blocks-bf5902622c42
express graphql mongodb boilerplate
https://github.com/watscho/express-graphql-mongodb-boilerplate
New Features, Methods & Improvements in Ruby 2.7
Ruby 2.7 is coming! Discover the most interesting changes in this new Ruby version & get ready for the update: https://www.rubyguides.com/2019/12/ruby-2-7-new-features/