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 form_with tutorial
“form_with” is a Rails helper that allows the construction of web forms optimized for communication with the server. [more inside]
Numeric operations on value objects in Ruby
Here’s a little Ruby puzzle. Imagine you have a Value class that wraps a number, and implements numeric operations. How would you go about implementing the class in a way that lets you do something like 2 + Value.new(3) and returns Value.new(5)? [more inside]
RubyWM - an X11 window manager in pure Ruby
I’ve just pushed a still very rough version of my Ruby X11 window manager to Github [more inside]
Montreal.rb Jan 2024 Building an AI Medical Scribe in Ruby
The video of the Jan 2024 Montreal.rb Ruby Meetup A.I. talk “Building an AI Medical Scribe in Ruby” by Jean-Sebastien Boulanger (CTO of Circle Medical) has been posted. Description: “In this talk, I’ll share insights from our experience creating an AI medical scribe using Ruby at Circle Medical, a hybrid primary care provider seeing over 50,000 patients monthly. We leveraged Large Language Models (LLMs) to create a scribe to enhance clinical documentation and save doctors’ time.” [more inside]
New version of actual_db_schema gem
Just released version 0.7.0 of the actual_db_schema gem! Now it tracks the branch from which phantom migrations are run. See the PR: https://github.com/widefix/actual_db_schema/pull/39 [more inside]
Unleashing the Magic of Ruby on Rails: A Fun-filled Journey into Web Development Wond
Are you ready to embark on a magical adventure through the whimsical world of Ruby on Rails? Buckle up, fellow developers, as we take a joyous ride into the enchanted realm of web development.
Reading Kamal configuration
Ever thought of reusing your Kamal’s config/deploy.yml configuration? This is how.
Rubygems introduced a file option to specify Ruby version in Gemfile
Rubygems introduced a file option to specify the Ruby version in Gemfile. [more inside]
Rails 7.1 Adds path_params Option For url_for Helper Method
With Rails 7.1, the path_params option for the url_for helper method allows specified params to be used exclusively for named segments under scoped routing without unnecessarily appending parameters to every URL. [more inside]
Tailwind and Ruby-on-Rails starter kit
Yes, I know, starter kits are all the rage nowadays, but I needed something more design-centric. Flowbite being the best option IMHO so far. [more inside]
Composite primary keys in Rails
There are scenarios where a combination of columns needs to be used as the primary key. This is where composite primary keys come into play. This article explores composite primary keys, how they work in Rails, when they should be used, and what to consider when using them. [more inside]
Speed Up Your Ruby on Rails Application with LiteCache
In the fifth part of this series, we’ll use LiteCache to speed up our Rails app: https://blog.appsignal.com/2024/01/17/speed-up-your-ruby-on-rails-application-with-litecache.html
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!