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.
How to define and use a Ruby Hash
A quick reference article about Ruby hashes https://www.bootrails.com/blog/how-to-define-and-use-a-ruby-hash/
Tailwind style CSS transitions with StimulusJS
Build polished UI components with StimulusJS and Enter/leave CSS Transitions using patterns from Vue, Alpine, and Tailwind. [more inside]
Gaspar Nagy on How to Improve Development and Business with BDD Testing
In this episode of Semaphore Uncut, we welcome Gaspar Nagy, creator of SpecFlow. [more inside]
A Story about Test Coverage Metrics
Do you have 100% test coverage and are still struggling with bugs? Check out this article on why you should look at your tests with a different perspective. [more inside]
Rails Live Reload GEM
https://github.com/railsjazz/rails_live_reload - this is one of the most interesting gems which we made. JUST check the demo. If you need a live reload for your code in views/css/js - this is a nice option. [more inside]
How to Build a Calculator With Hotwire and No Javascript
In this video, I’ll show you how you can build a calculator with Ruby on Rails’ Hotwire, without any Javascript. https://youtu.be/bh7WwHPm224
Rails and VueJS tutorial
Ruby-on-Rails minimalistic, default app starts without VueJS. Even JavaScript is optional. But only submitting forms and display inputs is no more a web standard. Dynamic, intuitive interfaces are. [more inside]
Rubber Duck Dev Show Episode 43 | Typed or Untyped Ruby
Hear two rubyists discuss the new features of ruby that allow you to set types for your variables. We discuss the pros and cons and discuss static vs. dynamic typing in general: https://www.rubberduckdevshow.com/episodes/43-typed-or-untyped-ruby/
Glimmer DSL for SWT Video Tutorial 17 - Hello, Date Time!
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]
An Introduction to Polymorphism in Ruby on Rails
This article will give you a greater understanding of polymorphism. To accomplish this, we’ll dive into: [more inside]
Gem that detects possible memory leaks early
Memory leak happens when application tries to load a lot of things to the memory and holds them, so garbadge collector cannot collect objects untill request is fully served. When Ruby virtual machine gets memory from the operating system it won’t be able to return it back because of the page fragmentation, so your monitoring will show that application took a lot and stopped somewhere. [more inside]
Event Streaming in Rails with Kafka
Do you need to process a lot of data in real time? Event streaming is a pattern that could help. David Sanchez walks us through how to do event streaming in Rails with Apache Kafka, the popular open-source event streaming platform. https://www.honeybadger.io/blog/event-streaming-rails-kafka/
How to add a Command Palette to your Ruby on Rails app
Command palettes are a common feature for power users in every application. Learn How to add a Command Palette to your Ruby on Rails app
Understanding ViewComponent concepts by building a button
Learn ViewComponent concepts while building a button component.
Rails 8, unreleased parts
We are not part of the Rails team, but dreaming is not 403 forbidden. [more inside]
Scraping Buy: Scripting for a Purchase
Using ruby for a quick web scraping operation, I was able to automate a small part of my personal life to facilitate an online purchase. [more inside]
Glimmer DSL for LibUI 0.5.11 - Basic Shape Drag & Drop
Glimmer DSL for LibUI 0.5.11 (Fukuoka Ruby 2022 Award Winning Ruby Desktop Development GUI Library) has just been released with basic shape drag and drop support. https://andymaleh.blogspot.com/2022/05/glimmer-dsl-for-libui-0511-basic-shape.html
Released bundler-audit 0.9.1
bundler-audit 0.9.1 was released which fixes a regression in the Bundler::Audit::Task
rake task, which was introduced in 0.9.0. The regression caused the rake task to not exit with an error if bundler-audit
detected vulnerabilities. If you use the rake task as part of your CI process, upgrading to 0.9.1 is highly recommended. See the ChangeLog for more details about this release.
Glimmer DSL for SWT Video Tutorial 16 - Weather
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]