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.


A week with a Rails Security Strategy

You’re a busy person. Security is not a very visible feature in most applications, and so sometimes it’s not a priority. Of course you know it’s important, but how can you fit it into your busy schedule? Here is how a week with a Rails security strategy for busy developers could look like.

Extract a service object using SimpleDelegator

It’s now more than 1 year since I released the first beta release of the “Fearless Refactoring: Rails controllers” book. Many of the book readers were pointing to the one technique which was especially useful to them - extracting a service object using SimpleDelegator. This technique allows to extract controller actions into service objects within minutes, if not seconds. [more inside]

Ruby hash initializing – why do you think you have a hash, but you have an array

We all use hashes and it seems, that there’s nothing special about them. They are as dictionaries in Python, or any other similar structures available for multiple different languages. And that’s more or less true. Although Ruby hashes are really special, because from time to time they really are… arrays. You can read more about that here.

Separating Abilities in CanCan

In this post Separating Abilities in CanCan, Jordan has a look at an example Ability file and enumerates some flaws in such a system. Following that he discusses a way to improve it by breaking the Ability file out into multiple Ability files.

Metaprogramming Dynamic Methods: Using Public_send

Metaprogramming is super cool, but it’s also super tough to learn when you’re first starting out. This blog post takes a look at metaprogramming through dynamic method calls, and explains and implements the public_send method in a real-life example of code abstraction.

time_boots.gem - simple time steps

I’ve recently published the gem for tasks like “round time to edge of day”, “advance time by 4 weeks”, “generate ‘each hour’ sequence” and so on. Small, no dependencies, no monkey-patching.

Loading older posts