Permalink
Browse files

Add create method to blog post controller

We add the `create` method to the blog post controller directly, then rerun the acceptance test.

Outer red: Unable to find xpath "/html"

The error we get is a bit obscure, but effectively it means the acceptance test can't even find an HTML document returned to search within. Unlike with the `new` action, with the `create` action, if no explicit render or redirect happens, Rails 5 does not return an error that a template is missing; it just returns empty content.
  • Loading branch information...
CodingItWrong committed Feb 26, 2016
1 parent ca241c1 commit 3a3c51755b7b77d34662abaaff1753e52392b310
Showing with 3 additions and 0 deletions.
  1. +3 −0 app/controllers/blog_posts_controller.rb
@@ -2,4 +2,7 @@ class BlogPostsController < ApplicationController
def new
@blog_post = BlogPost.new
end
def create
end
end

0 comments on commit 3a3c517

Please sign in to comment.