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.
Programming Ruby (Pickaxe Book) In Print!
I’m excited to announce that Programming Ruby is now in print! [more inside]
Finding where a method is defined in Ruby using IRB
A series of examples from simple code to more complex cases showing how to use IDE commands to find source
Keep your Ruby Code Maintainable with Draper
Let’s dive into what Decorator is, how to use it, and explore using Decorators in Draper for a Ruby application: https://blog.appsignal.com/2024/01/10/keep-your-ruby-code-maintainable-with-draper.html
Webhook Backend in Ruby
Hello Rubyists, After the good holidays, here is a new article for those interested in Webhooks and how it works under the hood. With an implementation in Rails :p [more inside]
Glimmer Goes Web!!!
Last September, I gave a talk titled “Intro To Ruby in the Browser” about how to use Ruby for Frontend Development in Rails as a complete replacement for JavaScript as per Matz’s RubyConf 2022 Keynote Speech. I concluded the talk by mentioning a then upcoming project called Glimmer DSL for Web that would make Ruby in the Browser the simplest, most intuitive, most straight-forward, and most productive Software Engineering experience in Frontend Development in any Programming Language or Technology. Well, The future is now! Glimmer DSL for Web (Ruby in the Browser Web GUI Frontend Library) just had its 0.2.2 Beta Release [more inside]
How to Use Brakeman to Find Security Vulnerabilities in your Rails app
Security is a huge concern for all of us and our web applications. [more inside]
Test Doubles: Testing at the Boundaries of Your Ruby Application
One essential tool that we as software developers rely on is known as “test doubles.” These versatile components come in various forms, including dummies, fakes, stubs, spies, and mocks. However, like other power tools, they require careful handling to prevent unintended consequences. [more inside]
Ruby 3.3 Implements Range#reverse_each Method For Very Large or Beginless Ranges And
With Ruby 3.3, Range#reverse_each can now process very large or beginless ranges with an Integer endpoint and raises TypeError for endless ranges. [more inside]
Pagy Out, Turbo In: Transforming Pagination with Infinite Scrolling and Turbo
Miha walks through a very elegant way to implement infinite scrolling using just the tools available out of the box with Rails, relying heavily on Turbo: Pagy Out, Turbo In: Transforming Pagination with Infinite Scrolling and Turbo
Etcher 1.0.0: A flexible configuration loader and transformer.
In case you ever have a need for loading, transforming, and overriding application configuration information and love blending Functional Programming with Object Oriented design via the Railway Pattern, you might enjoy this 1.0.0 release of the Etcher gem. The design is flexible, highly customizable, and fault tolerant (yay, monads). Enjoy!
Awesome Ruby blogs
Hello! 🖐️ See the updated blog list about Ruby and Rails and send me pull request if I missed something! 💎 Thanks and have a nice day! 💎
[Screencast] Turbo 8
With Turbo 8 comes a lot of new features and in this episode, we’ll explore an upgrading a blog post with comments to add in the new functionality. https://www.driftingruby.com/episodes/turbo-8
Understanding Big-O Notation with Ruby
If the whole Big-O notation thing baffled you in college, guess what? [more inside]
New version of DnsMock has been released 🚀
Added ability to mock SRV records. Mimic any DNS records for your test environment and even more: https://github.com/mocktools/ruby-dns-mock
Montreal.rb Dec 2023 Building LLM-powered Applications
The video of the Dec 2023 Montreal.rb Ruby Meetup A.I. talk “Building LLM-powered Applications” by Andrei Bondarev (Solutions Architect / Owner at Source Labs LLC) has been posted. The 2023 breakthroughs in Generative AI (Artificial Intelligence) have been taking the software development world by storm. We’ll take a look at a few components of what is quickly becoming the modern stack for building LLM (Large Language Model) powered applications. Andrei will build a case for Ruby in the emerging AI trend, and show how some of the AI capabilities can be leveraged today! https://www.youtube.com/watch?v=KQlgWT6y5QY&list=PLRAf4zt5oEjc2mqmEN9m_O0JovQCXxvxt&index=9
Code Archeology: The Evolution of ActionController::Parameters From Rails 4 to 5
Interested in the evolution of ActionController Parameters from Rails 4 to 5? Running behind on your Rails version? [more inside]
8 Turbo 8 Gotchas
I’ve been using Turbo 8 page morphs in production for the past few weeks since Beta 1 and wrote an article about a few things that I think could trip people up at https://fly.io/ruby-dispatch/8-turbo-8-gotchas/. Hope this helps others to make for a smoother experience with Turbo 8!