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

Fix 'formular' typo #615

Merged
merged 1 commit into from
Sep 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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