[Refactor] models ruby 1.9 styles
[Refactor] controllers ruby 1.9 style