updating code to padrino 0.11.0.