Changeset 1046 for trunk/grails-app/controllers/nmc
- Timestamp:
- Nov 2, 2010, 10:25:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/nmc/PilotController.groovy
r959 r1046 36 36 37 37 def index = { 38 38 39 def studyInstance = new Study() 40 studyInstance.properties = params 41 42 [studyInstanceList: Study.list(params), studyInstance: studyInstance] 39 43 } 40 44 … … 43 47 [studyInstanceList: Study.list(params), studyInstanceTotal: Study.count()] 44 48 } 45 46 /** 47 * create closure 48 */ 49 def create = { 50 def studyInstance = new Study() 51 studyInstance.properties = params 52 return [studyInstance: studyInstance] 53 } 54 49 55 50 def save = { 56 51 def studyInstance = new Study(params) … … 80 75 } 81 76 else { 82 render(view: " create", model: [studyInstance: studyInstance])77 render(view: "index", model: [studyInstance: studyInstance]) 83 78 } 84 79 }
Note: See TracChangeset
for help on using the changeset viewer.