Discard nil Hash values in Ruby

Sometime we need to cleanup a hash based for nil values. If you're using Rails/ActiveSupport it's really easy.

Live preview Rails Mailer templates while developing

Developing email templates and sending a new mail every time to view a change is very inefficient and painful. Rails comes in rescue again. With mailer preview, you can view the changes in your browser just like any other page template.

My first RubyGem capistrano-erb-uploader 0.1 released

I was impatient to hard code different env values in configuration files like NginX, Monit conf. So, the birth of Capistrano ERB Uploader.

How to change table for Rails models on the fly

Maybe you need your multi tenant application database to partition horizontally (shard). Probably you want to store different customers data in different tables.

ফ্রেমওয়ার্ক কেন শিখবেন? - কোড কোয়ালিটি

পুরা প্লাগইনই একটা ফাইলে কোড করে বসেছিলাম। সকল প্রকার HTML, লজিক, পেপালের IPN সব এক ফাইলে! এই জিনিসগুলা এখন আমি এইভাবে চিন্তাই করতে পারি না। এত মেস কিভাবে সম্ভব! এই কোড ক্যামনে মেইনটেইন করবে মানুষ!

Setup Rails with Ember.js CLI and Emblem

Anyway, as usual I'm using Rails for my API and backend app. The problem I faced is setting it up with latest Ember. In Ember land, everything from 3-4 months ago, is outdated.