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.
CodeTips#1: Exploring Hashes in Ruby
In this article we will be exploring 3 (+ one bonus) methods to retrieve values from hashes in Ruby and a few of it’s uses. [more inside]
How to rename a Rails app
Here are the instructions to rename an existing Rails app. Nothing really risky, it should be a set-and-forget thing. [more inside]
Glimmer DSL for SWT Video Tutorial 5 - Hello, File Dialog!
The Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) Video Tutorial 5 is out! It walks software engineers through Hello, File Dialog! [more inside]
Rails 7 application inside Docker on macOS: Part two - database and Mutagen
How to create Rails 7 app with all dependencies hidden inside a Docker container link
Ruby on Rails Forms With Hotwire (video)
I wanted to find out if Hotwire can be as good, or better than something like React JS. But… I wasn’t sure if Hotwire is up to it. https://youtu.be/-n7IbUFKjoM
Your app is not your business!
Separating the business domain apart from the application layer can help a lot in untangling your code and simplifying architecture. [more inside]
Glimmer Wordle 1.1.0
Glimmer Wordle 1.1.0, which is written in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), has been released with a number of improvements. [more inside]
S3 direct file upload using presigned URLs from React and Rails
Recently, we were working on a project where the backend was a Rails API and the front-end application was written in React. We had to implement a feature for a file upload. We worked out a solution to upload files directly to S3 using presigned URLs.
Rails administrate : big tutorial, bits of philosophy
administrate is a gem that allows you to build an admin dashboard. It’s often qualified as DSL-less admin builder, i.e. every file your admin dashboard rely on, can be fully overridden by the developer. Let’s see how. [more inside]
Glimmer DSL for LibUI Progress Spinner
I received a GitHub issue request the other day asking how to implement a progress spinner in Glimmer DSL for LibUI (Ruby Desktop Development GUI Library). I did a quick implementation of it using area vector graphics, and documented it under the newly added Area Animation section in the README. [more inside]
Rubber Duck Dev Show Episode 31 | How To Learn a New Code Base
Hear from two rubyists about ways you can learn a new code base: https://www.rubberduckdevshow.com/episodes/31-how-to-learn-a-new-code-base/
Glimmer DSL for SWT Video Tutorial 4 - Hello, Layout!
The Glimmer DSL for SWT Video Tutorial 4 is out! It walks software engineers through Hello, Layout! [more inside]
Introduction to Hotwire in Ruby on Rails (video)
With the release on Rails 7, Hotwire has generated a lot of confusion among Rails devs. So in this video, we’re going to look at how Hotwire works together with Stimulus and Turbo. [more inside]
Ruby - attr_accessor, attr_writer, and attr_reader
In Ruby, object methods are public by default, while data is private. To access data, we use the accessor method. [more inside]
The Economics of TDD
Getting started with TDD can be challenging, but it’s a game-changer. The increased speed and ROI cannot be compared with other development methods such as waterfall. [more inside]