Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Fix 'formular' typo
Browse files Browse the repository at this point in the history
  • Loading branch information
slomek authored and markbates committed Sep 3, 2017
1 parent 7ab4bb1 commit 94289b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (v {{.resourceName}}Resource) Show(c buffalo.Context) error {
return c.Render(200, r.HTML("{{.filesPath}}/show.html"))
}

// New renders the formular for creating a new {{.model}}.
// New renders the form for creating a new {{.model}}.
// This function is mapped to the path GET /{{.resourceURL}}/new
func (v {{.resourceName}}Resource) New(c buffalo.Context) error {
// Make {{.varSingular}} available inside the html template
Expand Down Expand Up @@ -105,7 +105,7 @@ func (v {{.resourceName}}Resource) Create(c buffalo.Context) error {
return c.Redirect(302, "/{{.resourceURL}}/%s",{{.varSingular}}.ID)
}

// Edit renders a edit formular for a {{.singular}}. This function is
// Edit renders a edit form for a {{.singular}}. This function is
// mapped to the path GET /{{.resourceURL}}/{{"{"}}{{.modelSingularUnder}}_id}/edit
func (v {{.resourceName}}Resource) Edit(c buffalo.Context) error {
// Get the DB connection from the context
Expand Down

0 comments on commit 94289b8

Please sign in to comment.