Ruby controller improviments