From f1f3772463e4e7a86155e093c02c837cb1280b45 Mon Sep 17 00:00:00 2001 From: Josh Justice Date: Fri, 26 Feb 2016 08:52:12 -0500 Subject: [PATCH] Add blog post create template Usually a `create` action would redirect to another route instead of rendering a template directly. But for the sake of keeping this tutorial simple, we'll just go ahead and render it--so we add a `create` template file. We leave it empty since that's all we need to do to get past the current error. Outer red: expected to find text "Hello, World!" in "" The next error is that, after submitting the blog post, the acceptance test expects to see the title of the post somewhere on the page, but it doesn't see it--because we haven't actually rendered any content at all. --- app/views/blog_posts/create.html.erb | 1 + 1 file changed, 1 insertion(+) create mode 100644 app/views/blog_posts/create.html.erb diff --git a/app/views/blog_posts/create.html.erb b/app/views/blog_posts/create.html.erb new file mode 100644 index 0000000..532bca5 --- /dev/null +++ b/app/views/blog_posts/create.html.erb @@ -0,0 +1 @@ +<%# empty view %>