Skip to content

Instantly share code, notes, and snippets.

@simonask
Created May 5, 2009 18:56
Show Gist options
  • Save simonask/107135 to your computer and use it in GitHub Desktop.
Save simonask/107135 to your computer and use it in GitHub Desktop.
/*
Why we need Continuations in Snow
*/
ArticleController: controller {
.index: {
articles: Article.find(#all)
render(articles)
}
.delete: {
article: Article.find(it)
if render.callcc(#confirmation)
article.destroy()
redirect(.index)
else
redirect(article)
end
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment