RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  

markbates — 48 posts will no longer be generating any more Ruby videos. Instead videos will be focused on Go instead.

Read more about the decision at
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.
In this episode we’ll learn about the new email preview functionality built into Rails 4.1 to preview emails during development.

* Subscription required.
In this episode we’ll learn how to use the Pundit gem to lock down access to objects in an API. Using TDD to drive the development of Pundit policies and scopes we’ll understand the basics of using this authorization library.

* Subscription required.
In this episode we will use TDD to write a custom JSON serializer using ActiveModel::Serializers. We’ll learn about how to use scope to determine which attributes to serialize. We’ll also look at some of the changes in the forth coming 0.9.0 release, including breaking changes around using URL helpers in a serializer.

* Subscription required.
Just over year after launching I took a look at some of the more interesting stats on Episodes.

If you're curious, here are the results.
I'm very excited to announce that the weekly Ruby, Rails and JavaScript screencast site, now supports team subscription plans.

If you're missing RailsCasts then I would recommend checking out MetaCasts to fill that void.

Learn more about team subscriptions here.
For the next 24hrs get the hour long video on Ember.js for 25% off, only $15. Includes full source code.
In this episode we’ll learn how to install, configure and use MiniTest in a Rails application. I’ll also show you a few tips and tricks on how to improve the output formatter, set up Guard to automatically run the tests, and more.

* Subscription required.
Introduced in Ruby 1.9, Fibers, are a lightweight concurrency library that puts the scheduling of work into the hands of the developer, and not the VM. As we look into Fibers we will also touch about the Enumerable module and even a bit of Ruby 2.0 goodness.

* Subscription required.
To celebrate the release of Ruby 2.0 the MetaCasts video on Ruby 2.0.0-rc2 is free for this week only! Check it out to see the highlights of what is new in Ruby 2.0. Enjoy.
Ruby 2.0 introduces some new features and changes that could impact Ruby developers daily. In this episode* we’ll explore topics such as Module Prepend, Keyword Arguments, Enumerable#lazy, amongst others. With Ruby 2.0 around the corner Ruby developers should be aware of these new changes and how they’ll impact your code.

* Subscription required.
In an earlier episode we took a look at using singletons in Ruby. But what happens when we try to use singletons in a threaded environment? This episode will take a look at how we can solve threading issues in our singletons using the Mutex class: Ruby Singletons Threaded
Travis CI and Heroku are two of my favorite tools. Recently I tried to figure out if there was an easy way to have Travis automatically deploy to Heroku once the tests have passed. Turns out it’s incredibly easy!
In Rails 3.1 it’s incredibly easy to build your application’s JavaScript using CoffeeScript, however if you fire off an AJAX request to your application you can only write your response using regular JavaScript and not CoffeeScript, at least until CoffeeBeans came along.
Why not use both fixtures and factories to make your testing in Rails easier?
Introducing CoverMe - RCov-esque code coverage for Ruby 1.9.
The APN (Apple Push Notifications) on Rails plugin has moved to a new home.
Here's why I think we should only support Ruby 1.9 with the Rails 3.0 release.
If you use, and like the apn_on_rails gem, perhaps you'd be interested in becoming it's maintainer:
My new book, Distributed Programming with Ruby, is now available on

Coverage includes
• Writing robust, secure, and interactive applications using DRb—and managing its drawbacks
• Using Rinda to build applications with improved flexibility, fault tolerance, and service discovery
• Simplifying DRb service management with RingyDingy
• Utilizing Starfish to facilitate communication between distributed programs and to write MapReduce functions for processing large data sets
• Providing reliable distributed queuing with the low-overhead Starling messaging server
• Implementing comprehensive enterprise messaging with RabbitMQ and Advanced Message Queuing Protocol (AMQP)
• Offloading heavyweight tasks with BackgrounDRb and DelayedJob
The Rails gem to help make sending push notifications to iPhones has been update to version 0.3.0. This version brings with it support for the Apple Feedback service.
[BOOK] Distributed Programming with Ruby
Today my book, "Distributed Programming with Ruby" became available on O'Reilly's Safari. To see a more current revision of the table of contents, check out this blog post. I'd love to hear your feedback.
Apple Push Notifications on Rails - APN on Rails is a Ruby on Rails gem that allows you to easily add Apple Push Notification (iPhone) support to your Rails application.
The alternative web framework has been upgraded to 0.8.3. Amongst the changes are effect helpers for jQuery and Prototype/Scriptaculous and Ruby 1.9 support.
The latest version of Configatron now has support for Ruby 1.8.x, Ruby 1.9.1rc1, and JRuby 1.1.6 support.
What is the fate of alternative framworks in the world of Rarb (Rails + Merb)?
Mack 0.8.2 contains bundled gems, DataMapper 0.9.7 support, ActiveRecord 2.2.2 support, and a pretty awesome implementation of deferred? actions.
Here's a simple tutorial about how to create your own instance of Configatron, and not use the global singleton.
Mack Framework 0.8.1 Released
This week the Mack Framework reached version 0.8.1. Amongst other things in the release there is now support for Portlets. Portlets allow you to build a Mack application and quickly package the ENTIRE application as a gem, and reuse it in another Mack application.
The Mack Web Application Framework now has a comprehensive, and ever growing, User Guide to help developer's make use of Mack's rich feature set. The User Guide can be found at:
Mack Framework 0.8.0 Released
The Mack Framework has just reached version 0.8.0. The release includes substantial feature improvements to the router, Configatron support, a new asset management system, better error handling, reporting, and logging. Plus, much more!
Configatron 2.1.4 Released
Configatron 2.1.4 Released: This release contains protection of already defined methods, such as object_id. Also in this release is a much improved inspect method.
Configatron 2.0.0 Released
Configatron has undergone a full rewrite and is now better, faster, and even easier to use than before! Check it out!
Thanks to Brandon Dimcheff for contributing a patch that let’s you call .to_hash on configatron to get your configuration settings out as a Hash.
Configatron 1.2.0 Released
Thanks to Simon Menke for contributing a great patch to Configatron that will automatically ‘namespace’ your configuration settings if you use the configure_from_hash or the configure_from_yaml methods.
Mack 0.7.1 Released
Lot's of great bug fixes, XSS prevention support, new Session Store API, and more. Check it out!
Configatron 1.1.0 Released
Version 1.1.0 bring the ability to load configuration parameters from a YAML file.
Thanks to Mack user, Diogo Almeida, there is a now a forum for all things Mack. Check it out at Sorry for the double post, but I messed up the 'href' in the last one.
Configatron 1.0.0 Released!
Configatron makes configuring your applications and scripts incredibly easy.
Mack 0.7.0 Released
Mack version 0.7.0 was released today. This release offers near-zero configuration distribution of an applications objects, routes, and views and layouts.
Building Distributed Apps w/ Mack
On August 25th, Mack 0.7.0 will be released featuring Distributed Views/Layouts and Distributed Objects (Models), along with Distributed Routes. Here's a screencast to demonstrate those features.
Mack 0.6.1 Released
Mack has been released. The release sports 38 new features and bug fixes. Included amongst the features are notifiers (email), RJS (jQuery and Prototype support), DataMapper 0.9.3 support, page caching, and a data factory for creating test data.
4 Little Known Mack Features
A few cool features that most people don't know about Mack.
Mack 0.6.0 Released
Mack, the distributed Ruby web framework, has been upgraded to 0.6.0. Improvements include, DataMapper 0.9.2 support, RSpec support, transactional tests, Internationalization, and more. Enjoy!
Cachetastic 1.7.0 Released
The simple, yet extremely powerful, Ruby caching framework, Cachetastic has been upgraded to 1.7.0.
Mack 0.5.5 Released
Mack 0.5.5 has been released. With a new rendering engine there is now support for Markaby and Haml.
Mack 0.5.0 Released
Mack 0.5.0 was released yesterday with the much debated ORM support changes.