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.

Faster TDD in Rails with Bundler's 'require: false'

This post explains why the Rails default behaviour of requiring all your gems automatically will lead to a slow TDD feedback cycle. Learn how to speed this up by avoiding loading gems unnecessarily, and also why using Spring may not be a good approach. [more inside]

This does not address the cause, it only addresses the symptom.

Use a fake DB adapter to avoid connection errors with rails assets precompile

If you are using docker for your rails deploys you might have run into the issue of compiling your assets before you database container is available. The usual solution is to precompile the assets on your local machine and track them within you version control system. There is, however, an alternative: use a fake DB adapter during asset compilation. [more inside]

Seems unable to visit the page The A record exists but I cannot even ping the I…
@PIKACHUEXE: Works fine for me…

Handling Bugs in your Cucumber Test Suite

Cucumber is quite a cool tool to build a test suite. Maybe you know the situation: You are the developer of some ruby library and support JRUBY and MRI-Ruby on Windows and Linux. You might have gotten into a pretty pickle adding a new feature whose tests only fails if you run them with JRuby. If the reason for this failure is a bug in the platform, you may need to work around this bug. This article describes a technique, how you can do that with cucumber.

drj/drjekyll - the missing static site theme package manager - jekyll command tool

Hello, I’ve put together the drjekyll gem that includes a command line tool that lets you manage static site theme packages. For example, use $ drjekyll list or $ drj ls to list all 100+ themes. To download and unzip a theme archive use the “installation code”, for example, use $ drjekyll new starter or $ drj new starter to dowload and unzip the Planet Jekyll’s Starter (Minimal) theme and so on. For more see the drj/drjekyll project site. Cheers.

InlineTranslation

I’m happy to announce the first iteration release of InlineTranslation, a ruby gem which wraps the Bing translator (same as used on Facebook / Twitter), and provides a quick and easy way to allow users to read user-generated content in other languages.

How to Process Large Data Sets with Ruby

The need for data migrations in mature systems is real. At times, requests for these migrations can appear at random. One minute, a system is behaving as specified, happily fulfilling requests, and then bam! All the user objects suddenly need an extremely crucial attribute. Find out how to do such a data migration in a fast and efficient way.

I think by far the best way to handle this is using some simple (Postgre)SQL: …
You can also use something like this (as well on a SQL level): http://stackover…

Rolling Out the Redcarpet for Rendering Markdown

It’s the little things in an application that matter the most. But small details like rendering markdown can be tricky to figure out if you’ve never done it before. This blog post rolls out the redcarpet gem and walks through how to render markdown content in your application.

Running and Destroying with Rails

I’ve been developing with Rails for years, and only recently discovered the rails destroy command. Like magic, it allows you to undo a previous rails generate command, for example when you make a typo or forget a column when generating a model or scaffold. In this post I explain how to use rails destroy, as well as another lesser-known command, rails runner.

Loading older posts