Browse files

Save blog post to database

We fix this error by `create`ing a `BlogPost` in the database instead of just instantiating one in memory.

Outer green

With thise, our acceptance test is passing. We've successfully allowed the acceptance test to drive us through implementing a complete feature!
  • Loading branch information...
CodingItWrong committed Jun 14, 2016
1 parent a900a09 commit 40ffedd91944fbb675ae72ec16d2e8e51ce15650
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/blog_posts_controller.rb
@@ -4,7 +4,7 @@ def new
def create
@blog_post =
@blog_post = BlogPost.create(blog_post_params)

0 comments on commit 40ffedd

Please sign in to comment.