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.
Milliseconds in Ruby
3 cases where you could meet milliseconds in Ruby. [more inside]
GraphQL APIs in Rails
GraphQL is a flexible, strongly-typed query language. It’s useful because it gives front-end developers the ability to query the database without many changes to the back-end. In this article, David Sanchez shows us how to design and build our own GraphQL APIs in Rails. https://www.honeybadger.io/blog/graphql-apis-for-rails/
Test and Optimize Your Ruby on Rails Database Performance
In this post, explore three common ways to discover and test database performance problems in Rails, and seven ways to optimize performance.
Spree Commerce 4.4 is here! 🚀🚀🚀
This is the biggest open-source release in a long time filled with new features & integrations! 💪 Spree is now even more composable and customizable! [more inside]
Strategic 1.2.0 (DefaultStrategy)
Strategic 1.2.0 (Painless Strategy Pattern in Ruby and Rails) shipped with a minor new feature: having a default strategy on Strategic classes of ‘default’, which is activated if a ModelNamespace::DefaultStrategy class is present… [more inside]
Upgrade Rails from 6.1 to 7.0
https://www.fastruby.io/blog/rails/upgrades/upgrade-rails-6-1-to-7-0.html This article will cover the most important aspects that you need to know to get your Ruby on Rails application from version 6.1 to version 7.0.
#13 - A sneak-peak into loading deps wirh dry-container
I have prepared a guide covering switching dependency files in Hanami, as well as providing a cool debugging tips for dependency loading with dry-container [more inside]
What's new in Ruby 3.1?
Ruby 3.1 was released last month, and it brings a new JIT compiler, a new debugger, improvements to IRB, better error messages, new hash syntax and lots of other improvements. Here’s a summary of the new features.
Glimmer DSL for SWT on ARM64/AARCH64
I am happy to announce that Glimmer DSL for SWT Version 4.22.2.1 just shipped with official support for ARM64/AARCH64 on Mac and Linux. [more inside]
Dynamic user content in Rails with Liquid tags
Using the liquid
gem to allow users to create dynamic content safely in your Rails apps https://boringrails.com/tips/rails-liquid-dynamic-user-content
Rails, Cypress : testing the whole stack is definitely easier
Cypress is a well-known tool for JavaScript developers. It allows elegant end-to-end testing of any application. For Ruby-on-Rails, it’s an extremely relevant tool to use. [more inside]
Arrays in Ruby
Hello all, I have released a video about Arrays in Ruby, one could watch it here https://youtu.be/K68EYhenZ-0
Remove files or folders from remote git
Ways to remove files or folders from the remote and local repo. [more inside]
Deploy secure, versioned secrets for Ruby on Rails
How easy is it to use occson with ruby on rails application: https://www.youtube.com/watch?v=qy-gxRaLFMw
Perfect Shape - Pure Ruby Geometric Algrithms
Perfect Shape 1.0.0 was released today, providing the Ruby community with an open-source library of Pure Ruby Geometric Algorithms. The reason behind creating this library was that before, there were no comprehensive geometric algorithm libraries in Ruby that covered all the geometric shapes like rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves. Most of them either lacked support for certain shapes like arc or lacked algorithms for checking point containment in every shape, including Cubic Bezier Curves. Thankfully, Perfect Shape addresses that issue completely for the Ruby community. [more inside]
Enumerating XKCD-style passwords with Ruby
I wrote a short blog post on how to enumerate XKCD-style passwords with Ruby. I show how to use the wordlist and chars gems to build and enumerate complex password patterns.
N1Loader gem to solve N+1 issues of any kind
Check out the new gem N1Loader that provides an easy way solve N+1 issues of any kind in your applications. [more inside]
Ruby Conferences & Camps in 2022 @ Planet Ruby - What’s Upcoming?
Hello, thanks to the contribution of Andy Maleh I added a new datafile and page for 2022 to collect upcoming ruby (and rails) conferences & camps around the world. For a first listing what’s upcoming in 2022, see Ruby Conferences & Camps in 2022 - What’s Upcoming?. Yes, you can. Add more conferences and camps. PS - Note: This is a public service from a banned for life ruby (reddit) member - the reason - what have you done for the ruby community - zero, nada, zilch.
Rubber Duck Dev Show Episode 26 | The DarK Side of Open Source
Hear two rubyists discuss the dark side of open source: https://www.rubberduckdevshow.com/episodes/26-the-dark-side-of-open-source/
Track and fix huge Active Record instantiations in Rails
I wrote a post on continuous monitoring of excessive Active Record instantiations and how to deal with them.
Visualize executable code
Check it out my gem Lecter. I am looking for contributors. Stars, pull requests, issues and questions are welcomed!
Ruby, map with index
There’s always a tiny doubt about how to “map with index” when using Ruby. Let’s see how, and we’re also going back to basics of Ruby map in this article. [more inside]