Got a hash of values you want to convert into a url query string? Use the to_query method: “http://www.example.com?” + […]

Use ActionParameter gem to handle your parameters. Checkout this article with a comparison of the current patterns used to work […]

Recently I realised I had +1GB of gems installed so I decided to uninstall all of them. I did this […]

In this article we will learn about some of the frequently asked Ruby programming questions in technical like “ruby slice […]

https://gist.github.com/4266573 Rake tasks for Sequel migrations based on https://gist.github.com/1409152

Writing gems? Bump will let you bump your gem version right from your console. Your gem version is included in […]

Maybe you gus already saw some code like: Rails.env.production? You can accomplish that syntax with any string object: person = […]

toto is a git-powered, minimalist blog engine for the hackers of Oz. The engine weighs around ~300 sloc at its […]

‘nil || false’ returns false and ‘false || nil’ returns nil. In ruby both nil and false are evaluated as […]

function yaml() { hashdot=$(gem list hash_dot); if ! [ “$hashdot” != “” ]; then sudo gem install “hash_dot” ; fi […]

Instead of creating several callbacks in the mongoid models use the counter_cache feature. class Foo include Mongoid::Document has_many :bars field […]

Remember compass-fontcustom? Well, a few days ago it hit version number 1.0.0 — go check it out!

The underscore ‘_’ is a placeholder variable for the last return value in IRB and Rails console. Loading development environment […]