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.
Ruby Community Conference
Ruby folks, I wanted to let you know that tickets for Ruby Warsaw Community Conference may run out soon. We have already more than 200 people. If you’re planning to attend, now is the perfect time to secure your spot! [more inside]
Should you use Hotwire or a Frontend framework on your next Rails project?
If you need to make this decision, sometimes it will be obvious, sometimes less so. Here I present an angle that you might find useful, based on looking at where the complexity of the project is located: Should you use Hotwire or a Frontend framework on your next Rails project?
The first commits I did in a Ruby on Rails repo
Here I detail the first commits I did in a Ruby on Rails side project: includes Rubocop, Brakeman, Rubycritic, importmaps audit and some other smaller tweaks.
Using devcontainers in GitHub Actions CI workflows
It’s simpler than ever to wire CI pipelines in GitHub Actions, thanks to devcontainers. Here’s how I run Rails test suites these days in GitHub workflows.
punks gem v1.0.0 - text-to-image generators for punks 24px, 32px, & 12px
hello, i have updated the punks gem v1.0.0 that includes many text-to-image generators for punk pixel heads / characters in 24px, 32px and now in 12px too. happy pixel pushing and image generation with ruby. ps: for a command-line tool using the text-to-image gem(s), see the Factory of Modern Originals (FoMO)
Rails flash messages and UX
Flash message is a very old notion of Ruby-on-Rails. This article will be focused on the usability and accessibility of these messages. [more inside]
Milestoner 17.1.0: With ASCII Doc and Markdown support
Happy to announce Milestoner 17.1.0 is out with ASCII Doc and Markdown build formats. 🎉 This is a great way to celebrate the accomplishments of your team – including the automate versioning of your project – in additional build formats other than stream (console) or web (HTML) formats. Enjoy!
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:
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