Demo for https://github.com/padrino/padrino-framework/issues/1504