Changeset 49 for trunk/src/grails-app/controllers/EntryController.groovy
- Timestamp:
- Feb 3, 2009, 6:06:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/controllers/EntryController.groovy
r40 r49 74 74 def save = { 75 75 def entryInstance = new Entry(params) 76 entryInstance.person = Person.findByUserId(session.userId) 77 76 78 if(!entryInstance.hasErrors() && entryInstance.save()) { 77 79 flash.message = "Entry ${entryInstance.id} created"
Note: See TracChangeset
for help on using the changeset viewer.