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 link_to tutorial and examples
link_to is a helper method in Ruby that is very useful to enable users to navigate through applications. [more inside]
Llewellyn Falco on Mob Programming for Optimizing Testing and Team Growth
Agile coach and creator of ApprovalTests Llewellyn Falco talks about the benefits mob programming has for developing, testing, and business. [more inside]
Self-destructing StimulusJS controllers
Add sprinkles of Javascript behavior with Stimulus controllers that run a few lines of code and then remove themselves from the page. Like inlined jQuery snippets but for the modern times! [more inside]
Understading why attr_accessor in Ruby is faster than a regular method
A post about the performance difference bettween attr_accessor and a regular method (hint: prefer a built–in one, it’s way faster)
Containerizing an Existing Rails Application
Containers are popular because they create a reproducible environment that you can deploy to production and run locally in development. However, containerizing a Rails app can be tricky—Jeff Morhous helps us navigate the pitfalls. https://www.honeybadger.io/blog/containerizing-an-existing-rails-application/
Turbo Confirm Modals with Hotwire
Overriding the Rails UJS or Turbo confirm methods has always been a pain. The upcoming release of Turbo supports Promises so we can very easily override the confirm modal. Learn how to make Custom Turbo Confirm Modals with Hotwire
Migrate from webpacker to esbuild
We started off as full stack engineers with our backend and frontend all in one framework. We had the asset pipeline (with sprockets) to help us maintain this ecosystem. When the time came we introduced webpacker to fill in where sprockets fell short. [more inside]
How to Add Infinite Scroll With Hotwire in Under 5 Minutes
In this video, we’re going to look at how you can add infinite scrolling to your Rails app with Hotwire. [more inside]
Hanami Router with TDD
Routing is one of the basic components of any web application. In this episode I’ll dig a bit into the Hanami router from the usage point of view, covering why it’s great and how to work with it. [more inside]
ArrayIncludeMethods Gem Now Supports RubyMotion
The array_include_methods gem v1.5.0 now supports RubyMotion in addition to MRI CRuby, JRuby, and Opal. It provides Array#include_all?, Array#include_any?, Array#include_array?, Array#array_index, Array#array_diff_indices, and Array#array_intersection_indices methods missing from basic Ruby Array API.
https://andymaleh.blogspot.com/2022/06/arrayincludemethods-now-supports.html
download random images from Unsplash
https://github.com/railsjazz/unsplash_image - a very simple way to add realistic images for your Rails app. Could be useful if you build some websites and you miss test images that are suitable for your projects.
Rubber Duck Dev Show Episode 45 | Reviewing the 2022 Rails Community Survey - Part 2
Hear two rubyists finish our discussion on the results from the 2022 Ruby on Rails Community Survey: https://www.rubberduckdevshow.com/episodes/44-reviewing-2022-rails-community-survey-part-2/
Ruby-on-Rails and AlpineJS tutorial
AlpineJS is a very promising JavaScript tool for already-rendered HTML. It sounds an awfully good fit for Ruby-on-Rails. Let’s dive in. [more inside]
Why End-to-End (E2E) Testing is Often Good Enough
E2E testing can be as effective as other types of testing to ensure the performance & reliability of the system for end-users. [more inside]
Glimmer DSL for SWT Video Tutorial 19 - Hello, Cursor!
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! [more inside]
Method chaining in Ruby
I wrote a little piece on method chaining in Ruby: https://greg.molnar.io/blog/method-chaining-in-ruby/
Add Feature Flags in Ruby on Rails with Flipper
Find out how feature flags function in principle and get started with feature flags using the Flipper gem. [more inside]
📚 What books on Ruby should I read to level up my skills?
Want to avoid going through an endless list of books to read when leveling up your Ruby skills? It’s time to add new tools to your self-learning technical practice toolkit. In this post, I’m going to share a few tools for your self-learning technical practice toolkit and get the most out of your continuous technical practice.
What Would It Take for Roda to Win?
Roda’s stated goals are simplicity, reliability, extensibility, and performance. Those are the very reasons why I have become such a Roda stan. It’s so malleable, you can take it in any number of directions in terms of architecture—particularly on the view side which is where my primary interest lies.
[Podcast] Code and the Coding Coder who Code it - Episode 7 - Chris Oliver
Chris Oliver joins the show to discuss all the adventures he’s been having. He tells us about the various projects he has going on, including: rewriting Hatchbox, hiring his first employee, and what the future of learning Rails could look like. He also is building a house which definitely takes some time to put together! There was so much to talk about this episode that it’s certainly getting the 1st place spot for longest episode! [more inside]
Rails 7.1 adds authenticate_by when using has_secure_password
Rails 7.1 has tried to address one of the seemingly unapparent security vulnerability called timing based enumeration attack by introducing a method authenticate_by when using has_secure_password.
This blog demonstrates the same.
https://blog.kiprosh.com/rails-7-1-adds-authenticated_by/