From 076393c6c77fc5da139a8c40fd5147b2327bfd8c Mon Sep 17 00:00:00 2001 From: Adam Lamar Date: Fri, 3 Nov 2017 09:52:54 -0600 Subject: [PATCH] forms using GET method ignore authenticity_token --- forms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms.go b/forms.go index b991731..b9328e8 100644 --- a/forms.go +++ b/forms.go @@ -57,7 +57,7 @@ func helper(opts tags.Options, help HelperContext, fn func(opts tags.Options) he opts["errors"] = help.Context.Value("errors") } form := fn(opts) - if help.Value("authenticity_token") != nil { + if help.Value("authenticity_token") != nil && opts["method"] != "GET" { form.SetAuthenticityToken(fmt.Sprint(help.Value("authenticity_token"))) } ctx := help.Context.New()