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.

Digging Into The Finder Object Pattern

The concept of “skinny controllers” and “fat models” is a fairly common one in Rails. But what happens when you need to construct complex queries that don’t really belong in a controller, but are too overwhelming for your model? The finder object pattern is an elegant solution for this problem, and this blog post digs into the rhyme and reason behind them.

Great pattern, thanks for posting! I think your point that scopes don’t really …

fedux.org – Care about "OOMScoreAdjust" in your systemd-enabled docker-images

Recently I put together a docker image with “PostgreSQL 9.4” installed from the project’s software repository on “CentOS 7.1” to back a rails application. Unfortunately I was not abled to run the “PostgreSQL”-server in a container based on that image. It failed with exit code 206/OOM_ADJUST. In this article I’m going to describe the reason for the failure using a minimal failing example.

Mapping Data with Representable - Part II

Recently I started a blog geared toward Ruby novices. My first series is a primer on using external APIs as datasources and mapping their data to ActiveRecord with the Representable gem. Part II is a beginner’s intro to the request/response cycle and some of the problems one can run into when mapping JSON documents to ActiveRecord objects.

Loading older posts