app/controllers/phcpresspro/blog/posts_controller.rb in phcpresspro-3.1.1 vs app/controllers/phcpresspro/blog/posts_controller.rb in phcpresspro-3.1.2
- old
+ new
@@ -56,10 +56,10 @@
@blog_post = Blog::Post.find(params[:id])
end
# Whitelist on what can be posted
def blog_post_params
- params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstimage, :remove_pstimage, :pstcategory_id, :user_id, :membership_id, :oganization_id)
+ params.require(:blog_post).permit(:blogpsttitle, :blogpsttext, :blogpstexcerpts, :pststatus, :pstcategory, :pstimage, :remove_pstimage, :category_id, :user_id, :membership_id, :oganization_id)
end
end
end