Created
October 11, 2012 10:44
-
-
Save serby/3871573 to your computer and use it in GitHub Desktop.
Processing form checkboxes in ctrl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var formHelper = require('../../../lib/utils/formHelper'); | |
... | |
formPostHelper: function(req, res, next) { | |
var proc = formHelper.processors; | |
formHelper.process(req, { | |
live: proc.boolean | |
}); | |
next(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment