Permalink
Browse files

Add `new` action to blog posts controller

Again, we only add enough code to get the test to pass.

Red: BlogPostsController#new is missing a template for this request format and variant.

       request.formats: ["text/html"]
       request.variant: []

Even though we didn't ask to render a template, Rails' default behavior for a controller action is to render a corresponding template, so that's the error it's running across next.
  • Loading branch information...
CodingItWrong committed Feb 26, 2016
1 parent 61f863f commit 8772d7d5f3ae39bfff6380d9e00fc8fca2241e5a
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/controllers/blog_posts_controller.rb
@@ -1,2 +1,4 @@
class BlogPostsController < ApplicationController
def new
end
end

0 comments on commit 8772d7d

Please sign in to comment.