app/controllers/phcpress/blog/posts_controller.rb in phcpress-2.7.5 vs app/controllers/phcpress/blog/posts_controller.rb in phcpress-2.8.0
- old
+ new
@@ -28,9 +28,10 @@
def edit
end
# POST
def create
+ @blog_post.user_id = current_user
@blog_post = Blog::Post.new(blog_post_params)
if @blog_post.save
redirect_to blog_posts_path, notice: 'Blog post was successfully created.'
else