Permalink
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
end
def create
@blog_post = BlogPost.new(blog_post_params)
@blog_post = BlogPost.create(blog_post_params)
end
private

0 comments on commit 40ffedd

Please sign in to comment.