FIX: Issue [] not define for true:Trueclass for rails3.2