This works in Rails but not in Padrino.