sails-generate-scaffold
sails-generate-scaffold copied to clipboard
This is a generator for creating a scaffold (CRUD) for a Sails Project
FAQ page has been moved.
When i tried $ sails generate scaffold services //for example.. i obtain this error: node_modules/sails-generate-scaffold/Generator.js:102 var modelAttributeNames = _.pluck(scope.modelAttributes, 'name'); TypeError: _.pluck is not a function at Object.module.exports.before (/.../node_modules/sails-generate-scaffold/Generator.js:102:33) at...
## Summary I needed to get this to work with a more current `lodash` version, so that it would be compatible with Sails v0.12. My editor auto-stripped the trailing whitespace....
Please review the below log after a successful installation: C:\wamp\www\Sails Projects\sails-hybrid>npm install sails-generate-scaffold [email protected] node_modules\sails-generate-scaffold +-- [email protected] +-- [email protected] ([email protected]) +-- [email protected] C:\wamp\www\Sails Projects\sails-hybrid>sails generate scaffold user name:string age:integer email:email...
This is the first time i have created a pull request so if i did something wrong tell me and I can do it again.
npm WARN package.json [email protected] No repository field.
In editFormFields.template and showFormFields.template the labels are hard-coded to "name". I suspect these lines are supposed to be:
It looks like model associations are not yet supported. Is this feature on the roadmap?
Could one be able to update the values of, rename or delete a scaffolded CRUD?