RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
June 10, 2014
New service for automatic rails stage.
I just published an article that covers open source security libraries, web services, and reads that any developer should consider before implementing their next Ruby app.
Angular vs Ember. RSpec vs Minitest. Haml vs Slim vs ERB. You have so many choices to make when you start a new project. There are vocal defenders on each side. And soon you realize that you could have started your project in the time you’ve wasted reading that fourth tutorial or 30-comment thread about whether Sass is better than Less. How can you choose the right library, so you can start writing actual code?
We just released Invoker version 1.2.0, which adds support for Linux, https and many other bug fixes. Find more on Invoker website
gem 'modular_migration'
$ rails g model core/user name:string
invoke active_record
create app/models/core/user.rb
create app/models/core.rb
create db/migrate/core/user/20140324105328_create_core_users.rb


Include the gem in your Gemfile:
gem 'modular_migration'

This release fixes a pesky bug where inheritance was broken for column colors. Check out the wiki to see examples of nicely formatted tables. As always the gem is available on with source on github. For those not familiar with "the reporter", it provides a ruby DSL for writing reports with built in features for progress reporting and table formatting. It is very handy for system level and data reporting scripts.
Container controllers, such as UINavigationController or UITabBarController are the core navigation mechanism for many of our applications. The UIKit framework provides us with mechanisms and direction to create our own custom container controllers, which we'll be covering in this episode.
June 09, 2014
Reorganizating a Rails data model
Here are a few things I learned while reorganizing a data model for a web app that had been running for over five years.
A few days ago Aaron Patterson wrote a interesting article about composition vs inheritance with Ruby.
Composition should be preferred, but beware of the unexpected behaviors. This is my personal experience: Three Things To Know About Composition.
Hello, I've created a new GitHub org, that is, wikiscript, that collects (Ruby) scripts that let you turn free-style or semi-structured wiki text into open structured data. A first example is the new football squads reader that reads in a wikitext page and outputs all squads files in the football.db format - so you get an up-to-date World Cup 2014 squads list including all 736 player (32 teams x 23 players). (By the way, three days to kick-off and counting!) Cheers.
June 08, 2014
Just released rufus-scheduler 3.0.8. The scheduler will now fall on its paws during ambiguous DST transitions. Thanks to @junhanamaki for spotting the problem and helping resolve it.
We show you how to get up and running with the writefully gem ~ 13 Minute Video
I compiled a guide to debugging Rails. Included are techniques such as referring to the C debugger, using Gmail's search features to find information in archived exception reports, analysing Memcached usage stats, and setting up log based alerts.

The entire document is broken into sections and contains approximately 30 pages of original content. Hope you find it useful.
I just published DuckPond - a gem for getting around some of the shortcomings of duck typing in a weakly typed language such as ruby.
"swift-ruby" is designed to bring over some good features from Apple's new Swift language to Ruby:

I implemented only one thing, the ? Optional method operator..please jump in and submit some Pull Requests!


I just came from Apple's WWDC and watched their introduction of the new Apple Swift programming language.

From Chris Lattner, a Swift developer at Apple personal site: "Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list."

The ? Optional operator is equivalent to ActiveSupport's "try":

The active support version would look like this:

e =

The Swift-Ruby version:

e =

So, clone the repo:, see Apple's reference:, and submit some PR's.
Claws is a command line based AWS (Amazon Web Services) console that provides a direct interface to ssh into your hosts. Check out a screenshot example of how it works along with other information on github. This release is a simple bug fix that was introduced with the latest version of the Command Line Reporter gem.
June 07, 2014
GemWorld: Knod
A lighthearted story about how the gem Knod works. Check it Out.
June 06, 2014
In this episode we’ll look at pre-Rails 4.1 and post-Rails 4.1 ways of selecting different views based on the current request. These can be useful for returning mobile views for smart phones or other custom views.

* Subscription required.
I've created first part of my guide to creating links aggregation website in rails
June 05, 2014
I just released a tutorial to show you how to configure hourly database and file backups on your server.
Have you ever wondered how rails boots from rails server to a fully working webserver?

I wrote about it!
Some time ago, we decided that we needed to improve the tool that manages our team work in a better way. A a result - we created a "People App". Then we though - if it help us to manage our devs within projects - why not to share it with other? Introducing - People App - hope you'll find it useful guys.
Universal Ruby Gems in 20 Lines of Code
New article on Cross Platfrom Ruby Blog. It explains how to make your gems run universally in Ruby, RubyMotion and Opal.rb. It literally takes 20 lines of code.
June 04, 2014
The culture of testing is one of the best things about the Rails community. But if you’re coming from a place where you weren’t testing at all, TDD can be especially hard to learn. It’s clear that you can’t really go from zero to TDD in a single step. So, what do you do? How can you learn TDD without being overwhelmed?
We show you why and how you would use enum in your app Rails 4.1 Enum (~ 6 minutes)
Data listing gem for Rails
Easily create AJAX-enabled data lists
with out-of-the-box support for sorting, filtering and in-place editing. Check our gem SmartListing.
I am collecting feedback on the intro to a Ruby book I am working on...

My own history

I have been coding since I was thirteen, when my Father came home with old IBM clone that he traded for during the 80’s barter craze. Being nearly forty years old now, I have stubbed my toe and left it bleeding in more than a dozen languages now. If I were a construction worker instead of a knowledge worker, I would probably be missing fingers, toes, and possibly a hand or leg.

Continue reading
Docker seems like it's going to change the way we deploy Rails applications and an essential step in taking advantage of this is using it in both development and production. This Rails and Docker Tutorial covers setting up quick and repeatable development environments using Vagrant and Docker.
My post on Client side SSL Certificate Authentication with Rails and Nginx.
June 03, 2014
Ruby on Rails strives to simplify and streamline the web application development process. But while Rails is easy to use, it is also not hard to misuse. This article looks at 10 common Rails pitfalls, including how to avoid them and the problems that they cause.

Link: Top 10 mistakes Ruby on Rails programmers make
I’ve been seeing a lot of tweets from people saying that Swift has basically killed RubyMotion, which is extremely far from the truth, and I’m going to explain why quickly and without much fuss, because people seem to just be saying it without thinking.

Why Swift Will Never Replace RubyMotion
A Big Week For RubyMotion Developers
This past week has been insane for me, with the RubyMotion #inspect conference, and now the massive announcements from WWDC, there is a lot of new things for us RubyMotion developers. Not only do we have a new platform (Android) to work with soon (which for a lot of you may be the first time you’ve ever touched it), but Apple has dropped some amazing new APIs for us to use, and we haven’t even seen close to all of them yet.

A Big Week For RubyMotion Developers
June 02, 2014
This article describes how to refactor and improve readability of complex data processing with syntax similar to Haskell do-notation and State monad.
Rails Extentions
Split a monolithic app into small isolated apps and extending them with class extensions
June 01, 2014
TDDing a static website generator - part 1

@thatrubylove holds session sundays every sunday 12pm-2pm CST! Join us next time.
This is new gem for simplifying installation of Oracle Instant Client. Gem is here and explanations are here.
Hello, I've reconfigured the sportbook - an open source Ruby on Rails web app for match picks/predictions - for the World Cup 2014 in Brazil (11 days an counting!). The sportdb gem lets you load the plain text fixtures into your SQL database of choice; see the worldcup.db fixtures in plain text or served up via a web app or try the World Cup Brazil 2014 picks demo (login with demo/demo). Cheers.
May 31, 2014
Get more from ActiveRecord::Store
You like ActiveRecord::Store with it's serialised attributes but tired from converting attributes to a not string value?! Check out active_store_accessor which does all dirty work for you.

PS. default values are also supported.
Building an Ember App with Rails
Part 4
I have prepared some Ruby code to show how conditionals can breed like rabbits, and how to spay and neuter those bunnies before it get’s out of control.

Along with the code, there is a screencast or as I will call it, a RubyLovecast. In the video, I will walk you through several revisions of the code, first showing how conditionals grow, then how to take a weedwacker to them.

continue reading @ rubylove
In this episode we show you how to optimize the response for our mobile site Video on Youtube.
May 30, 2014
I wrote list of ruby news websites
We just wrote this blog post on Using ActiveRecord scopes with activeadmin.
May 29, 2014
Interviews with Ruby community leaders and contributors from RailsConf 2014 at Examples of interviews are Aaron Patterson aka @tenderlove, DHH, Yehuda Katz & Tom Dale, Evan Phoenix creator of Rubinius, Obie Fernandez author "The Rails Way", Carlos Antonio da Silva, and many more
Want to learn more about metaprogramming in Ruby?

Of course you do! We're going to look at how to build classes dynamically in Ruby.

Second in a series, perfect for anyone who wants to see some practical metaprogramming in action.
I just announced PostgresExt-Serializers which allows you to serialize your JSON responses in PostgreSQL instead of Rails
New post on Group Buddies blog: Random (and probably useless) Rubyisms
Cells now allows to package JS, CSS and more into a cell directory making it really simple to integrate assets into the asset pipeline. This allows a highly modular and encapsulated architecture which is briefly discussed here.
There’s an expression that to a person with only a hammer, every problem looks like a nail. Over time, familiarity makes most problems look like nails to which you simply apply your hammer.

Read the rest of the blog: