Skip to content

Commit

Permalink
Add blog post create template
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Josh Justice committed Apr 9, 2018
1 parent 3a3c517 commit f1f3772
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/blog_posts/create.html.erb
@@ -0,0 +1 @@
<%# empty view %>

0 comments on commit f1f3772

Please sign in to comment.