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.
New Ruby on Roda Release - Background Jobs with Sidekiq
Hi, many of you asked me to show you how to create background jobs in the Roda application. As a result, I released a new version of Ruby on Roda book that includes a chapter describing how to use Sidekiq for asynchronous jobs and Sidekiq::Web for monitoring processes in production . If there is a topic you would like me to describe, let me know! [more inside]
cache your methods easilllllly
https://github.com/igorkasyanchuk/rails_cached_method a simple and elegant solution to cache your methods in Rails app. [more inside]
5 SaaS Solutions Built with Ruby on Rails
These are the top 5 SaaS solutions and apps built with Ruby on Rails. They showcase that Ruby on Rails projects are still worthy of building powerful web applications. [more inside]
Custom “cops” for RuboCop: an emergency service for your Ruby code
By the end of this recent article from Dmitry Tsepelev at Evil Martians, you’ll be in a great position to cope with custom cops for RuboCop, add them easily to any legacy application, or even extract them into separate gems for reuse in greenfield projects.
Rails Security Threats: Authentication
Authentication is at the heart of most web development, yet it is difficult to get right. In this article, Diogo Souza discusses common security problems with authentication systems and how you can resolve them. Even if you never build an authentication system from scratch (you shouldn’t), understanding these security concerns will help you make sure whatever authentication system you use is doing its job. https://www.honeybadger.io/blog/rails-security-authentication-leaks/
wrapped_print
https://github.com/igorkasyanchuk/wrapped_print - Easy print debug information to your console in Ruby/Rails app. [more inside]
Dry::Inflector - Easy string manipulations in Ruby | Hanami Mastery #4
I’ve released a new Hanami Mastery Episode, this time covering the Dry::Inflector gem! https://hanamimastery.com/episodes/4-string-transformations-with-dry-inflector [more inside]
Dotenv-linter v3.1.0: Overview of key changes
https://github.com/dotenv-linter/dotenv-linter — a lightning-fast linter for checking, fixing and comparing .env files. Look at an overview of the key changes included in this release: https://dotenv-linter.github.io/#/whats_new/v310
Building large features: my process for branches, requests and reviews
Working on large features can be tricky. I’ve spent the last few months refining a process that makes it easy to keep in touch with the main branch, to make reviews more manageable, and with little GIT overhead. 👉 https://remimercier.com/building-large-features-process/
Super v0.17.0
Super is a featureful, lightweight Rails admin framework. This release includes improvements to the filtering feature. I’m happy to say that Super is largely stable now, and future releases are unlikely to break public APIs. https://zachahn.com/posts/1623918287
Scout APM Launches Error Monitoring for Ruby Applications
Scout APM announces the release of error monitoring for Ruby applications. Scout APM + Error Monitoring centralizes performance monitoring, error insight, and real-time alerting within a single, integrated dashboard, helping developers streamline troubleshooting by eliminating the need for multiple web application monitoring services. Ruby developers can try Scout APM + Error Monitoring free for 14 days, no credit card required.
AnyCable Goes Pro: Fast WebSockets for Ruby, at scale
A year into AnyCable’s 1.0 release, Vladimir Dementyev and the Evil Martians introduce the Pro version. It adds special ingredients to already performant and scalable real-time formula that keeps the familiar Rails Action Cable API for full-duplex messaging and backs it with the blazing-fast Go server for WebSocket connections. And it’s all free while in beta!
💎 dns_mock - mimic any DNS records for your test environment and even more!
New release of dns_mock has been published. Test framework agnostic, lightweight UDP DNS mock server with dynamic/manual port assignment: https://github.com/mocktools/ruby-dns-mock
“Friends” (Undirected Graph Connections) in Rails
I wrote a short post about how to model social connections in a Rails app, using the Scenic gem to make a simple database view and virtual model.
Rails engine to add traffic analytics to your web app
We have released a Rails engine to enable traffic analytics to any Rails application out of the box. The goal is to have simple traffic analytics for the win of privacy. NO cookies, NO JavaScript, NO third parties and NO bullshit. We wrote a small article to explain a little bit further : https://www.basesecrete.com/active_analytics.html
Moving ActionCable over to Webpacker
If you’ll be updating your Rails application to use Webpacker, here is a step-by-step post on how I moved ActionCable to Webpacker.