RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Glimmer Connect 4

Glimmer DSL for SWT 4.20.13.14 shipped with a Connect 4 elaborate sample. It is implemented as a 2-player game that is very similar to Tic Tac Toe in implementation except that it relies on a hybrid canvas widget/shape approach to lay out the slots. [more inside]

Building a Documentation Workflow in Rails

Good docs make happy customers. But documentation is HARD. You have to figure out what’s important and write it up in a way that’s tailored to your audiences and consistent across the site. Now you need to set up a website, publish the docs and maintain them as your product changes. Fortunately, we have seasoned technical writer Kate Bartolo here to walk us through the whole process. https://www.honeybadger.io/blog/documentation-worklow-rails/

Using ActiveRecord's #update_counters to Prevent Race Conditions

Race conditions are arguably the most insidious kind of bug; they’re intermittent, subtle, and most likely to occur in production. ActiveRecord’s update_counter provides us with a convenient way to avoid race conditions when incrementing or decrementing values in the database. In this article, Jonathan Miles shows us how to use it, how it’s implemented, and other approaches to avoiding race conditions. https://www.honeybadger.io/blog/activerecord-update-counters-race-conditions/

Powerful Emacs Snippets

In this post, I documented the process of customizing one of my Ruby snippets to have some code expanded conditionally. I used Emacs, but the general idea may apply to snippet packages of other editors. [more inside]

Webpack ALL The Assets

With the release of Rails 6, Webpack was introduced as the default JavaScript bundler by using the Webpacker gem. We tend to think about Webpack only as a tool to handle JavaScript files, but it can be used to handle all kinds of asset files. This article shows how to create a Rails app that uses only Webpack to handle all the assets, including images, fonts, styles and videos. [more inside]

Loading older posts