Skip to content

Instantly share code, notes, and snippets.

@Enome
Created July 28, 2012 20:10
Show Gist options
  • Save Enome/3194612 to your computer and use it in GitHub Desktop.
Save Enome/3194612 to your computer and use it in GitHub Desktop.
app.post ( url 'my_products_create' ),
( middleware.validateOwner )
( validation.setup Product )
( validation.validate 'my/products/edit' )
( middleware.one )
( data.many 'old' )
( middleware.constructProduct )
( middleware.addQuantity )
( data.save 'product' )
( general.setFlash 'success', 'Product is opgeslagen.' )
( general.redirect 'my_products' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment