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.
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.
Free autoscaling for all Heroku Rails apps
Every Rails app on Heroku should have a safety net in place, and now they can. Introducing the free plan for Rails Autoscale.
Ruby : the "unless" keyword
You are probably familiar with the “if else
” control flow but there are certain situations where there may be a visually better way to write these statements. Here we will discuss how you can achieve this via the unless
keyword in Ruby and the different ways you can use it. [more inside]
Rails 7 add encryption to Active Record
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary. https://blog.saeloun.com/2021/06/09/rails-7-add-encryption-to-active-record
Conditional HTTP GET: The fastest requests need no response body
Wrote a lengthy article on how to utilize conditional HTTP GET requests as a caching mechanism, with examples in Rails. Check it out here.
Examples of Successful Self-Taught Developers
Feel like coding is not for you? You’re not alone. To give you a boost of inspiration, here’s a list of a few successful Rails developers that come from unusual backgrounds. You can read it here.