Skip to content

Commit

Permalink
provide an action which returns a model
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Scott Brown committed Mar 13, 2016
1 parent 1987c71 commit f354047
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grails-app/controllers/demo/DemoController.groovy
Expand Up @@ -5,4 +5,8 @@ class DemoController {
def index() {
render view: 'index'
}

def report() {
[name: 'Raymond']
}
}
5 changes: 5 additions & 0 deletions grails-app/views/demo/report.gsp
@@ -0,0 +1,5 @@
<html>
<body>
Reporter Name: ${name}
</body>
</html>

0 comments on commit f354047

Please sign in to comment.