Cookbook / Data and forms
Create a resource.
Generate a book catalog, then make the model, actions, views, and request specs your own.
Draft recipeTarget: 0.4.0Not yet recipe-tested
Where the change goes
app/models/book.crThe stored shapeapp/changesets/book.crRules for writesapp/actions/books/Request handlingapp/views/books/Browser presentationspec/requests/books_spec.crBehavior checksGenerate the feature
Run inside a configured application. Review the generated files and migration before applying it.
frappe make resource Book title:string author:string
frappe migrateProve the behavior
frappe check
frappe corretto spec/requests/books_spec.crThe generated request spec exercises create, read, update, delete, and rejection of invalid requests. Extend it with your own validation rule and an example that fails that rule.