Skip to content

Instantly share code, notes, and snippets.

@marcpalmer
Created February 20, 2012 19:46
Show Gist options
  • Save marcpalmer/1870981 to your computer and use it in GitHub Desktop.
Save marcpalmer/1870981 to your computer and use it in GitHub Desktop.
Email Confirmation Plugin Example
class YourController {
def feed = {
render(feedType:"rss", feedVersion:"2.0") {
title = "My test feed"
link = "http://your.test.server/yourController/feed"
description = "The funky Grails news feed"
Article.list().each() { article ->
entry(article.title) {
link = "http://your.test.server/article/${article.id}"
article.content // return the content
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment