Skip to content

Commit

Permalink
Updated example for working with last autoform version
Browse files Browse the repository at this point in the history
  • Loading branch information
fcmatteo committed Apr 10, 2015
1 parent 8353b1e commit e9843ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Docs.attachSchema(mySchema);
Change the html to reflect the server method type:
```html
<template name="insertForm">
{{#autoForm id="insertForm" type="method" collection="Docs"}}
{{#autoForm id="insertForm" type="method" collection="Docs" meteormethod="myServerMethod"}}
{{> afQuickField name="name"}}
{{> afQuickField name="fileId" type="cfs-file" collection="files"}}
<button type="submit">Submit</button>
Expand All @@ -118,10 +118,10 @@ AutoForm.addHooks(
["insertForm"],
{
before : {
myServerMethod: CfsAutoForm.Hooks.beforeInsert
method: CfsAutoForm.Hooks.beforeInsert
},
after : {
myServerMethod: CfsAutoForm.Hooks.afterInsert
method: CfsAutoForm.Hooks.afterInsert
}
}
);
Expand Down

0 comments on commit e9843ba

Please sign in to comment.