Skip to content

Commit

Permalink
fixed forms helper
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed May 3, 2018
1 parent b1a0867 commit 5d52aed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions forms.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ func helper(opts tags.Options, help HelperContext, fn func(opts tags.Options) he
if help.Value("authenticity_token") != nil && opts["method"] != "GET" {
form.SetAuthenticityToken(fmt.Sprint(help.Value("authenticity_token")))
}
ctx := help.Context.New()
ctx.Set(hn, form)
s, err := help.BlockWith(ctx)
help.Context.Set(hn, form)
s, err := help.Block()
if err != nil {
return "", err
}
Expand Down

0 comments on commit 5d52aed

Please sign in to comment.