diff --git a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v index d6284ce55e..7e80713b72 100644 --- a/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v +++ b/tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v @@ -49,9 +49,7 @@ pub fn (mut app App) new() vweb.Result { } ['/new_article'; post] -pub fn (mut app App) new_article() vweb.Result { - title := app.form['title'] - text := app.form['text'] +pub fn (mut app App) new_article(title string, text string) vweb.Result { if title == '' || text == '' { return app.text('Empty text/title') }