Explore DigRuby

Most Recent Articles

rails-bestpractices.com is now launched

2010-07-25
RubyFlow - I'm glad to say http://rails-bestpractices.com is now launched. It's a website that provides the best practices to write rails codes and anybody can share his/her practices. It's also the home page of rails_best_practices gem. ihower is also the administrator who is the presenter of Rails Best Practices presentation. Welcome to share your practices here.

Roadmap for Learning Rails

2010-07-24
RubyFlow - It can be daunting for a Rails newbie to know where to start and what to learn in what order. The Roadmap for Learning Rails helps beginners bootstrap their Rails learning.

Coloration, a Textmate to Vim/JEdit/Kate color scheme converter

2010-07-23
RubyFlow - If you're using Vim or JEdit and you envy Textmate users for their good looking, dark color schemes check out Coloration color scheme converter.

OSCON Interview

2010-07-23
Envy Labs - This week Nate, Jacob, Thomas and I are at OSCON where we taught our Rails 3 tutorial on Tuesday. Yesterday at the conference I was interviewed in the OSCON booth, the results of which you can see below: View on YouTube Related posts:5 Days of OSCON – Day 15 Days of OSCON – Day 25 Days [...] Related posts:
  1. 5 Days of OSCON – Day 1
  2. 5 Days of OSCON – Day 2
  3. 5 Days of OSCON – Day 5

Nuby Hoedown -- Beginner/refresher track before the Ruby Hoedown MMX

2010-07-23
RubyFlow - We just announced the speakers for Ruby Hoedown, but we've also announced the Nuby Hoedown, a one day, 8 hour training/refresher set for Rubyists. We'll walk through some core Ruby language skills, RubyGem authoring, Git skills, and more all led by experts like David A. Black and Scott Chacon. Check it out and register now for FREE!

Testing capistrano with capistrano-spec

2010-07-22
RubyFlow - Tests, we generally like them for our code. Remember, capistrano recipes are code too, so please, be sure to test them. I put some notes and codes to help get started with capistrano testing with rspec: capistrano-spec

A Gentle Introduction To Isolation Levels

2010-07-21
RubyFlow - Database isolation levels, introduced in the context of Rails applications, with the practical application demonstrated with acts_as_list.

ScopedSearch

2010-07-21
RubyFlow - I just launched ScopedSearch gem for Rails 3. With it you can easily implement search forms and do column ordering based on your models scopes. Compatible with ActiveRecord and Mongoid! See the example in the README...

Clean Mongodb in UnitTest, Rspec, Cucumber using Mongoid

2010-07-21
DIG RUBY - Rails UnitTest in file test/test_helper.rb in class ActiveSupport::TestCase add   teardown :clean_mongodb   def clean_mongodb     puts "cleaning mongodb...."     Mongoid.database.collections.each do |collection|       unless collection.name =~ /^system\./         collection.remove       end     end     puts "finished cleaning mongodb."   end Rspec in file spec/spec_helper.rb, in Spec::Runner.configure add config.after(:each) do     puts "cleaning mongodb...."     Mongoid.database.collections.each do [...]

Easily dump and restore a snapshot of installed gems

2010-07-20
RubyFlow - gem_snapshot is a small rubygems plugin that allows you to dump a snapshot of your installed gems to a YAML file, and then install the gems in the snapshot later on (probably on a different computer).