From 96006aa2dd2c2ae3a7dc9bcc7b6d14886708fbac Mon Sep 17 00:00:00 2001 From: Shin Kojima Date: Sun, 21 Sep 2014 21:27:39 +0900 Subject: [PATCH] [ja] apply patch] --- ja/ebook/13.5.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ja/ebook/13.5.md b/ja/ebook/13.5.md index cc643b89..0282bff1 100644 --- a/ja/ebook/13.5.md +++ b/ja/ebook/13.5.md @@ -66,7 +66,7 @@ ViewController: } func (this *ViewController) Get() { - id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) + id, _ := strconv.Atoi(this.Ctx.Input.Params(":id")) this.Data["Post"] = models.GetBlog(id) this.Layout = "layout.tpl" this.TplNames = "view.tpl" @@ -100,7 +100,7 @@ EditController } func (this *EditController) Get() { - id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) + id, _ := strconv.Atoi(this.Ctx.Input.Params(":id")) this.Data["Post"] = models.GetBlog(id) this.Layout = "layout.tpl" this.TplNames = "new.tpl" @@ -124,7 +124,7 @@ DeleteController } func (this *DeleteController) Get() { - id, _ := strconv.Atoi(this.Ctx.Input.Params[":id"]) + id, _ := strconv.Atoi(this.Ctx.Input.Params(":id")) blog := GetBlog(id int) this.Data["Post"] = blog models.DelBlog(blog)