app/controllers/posts_controller.rb
def post_params
      params.require(:post).permit(:title, 
                                  :body, 
                                  :slug, 
                                  :category, 
                                  :user_id, 
                                  :meta_description, 
                                  :meta_title, 
                                  :published,
                                  :user_id
                                  )
    end
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def post_params
      params.require(:post).permit(:title, 
                                  :body, 
                                  :slug, 
                                  :category, 
                                  :user_id, 
                                  :meta_description, 
                                  :meta_title, 
                                  :published,
                                  :user_id
                                  )
    end
def post_params params . require ( :post ) . permit ( :title , :body , :slug , :category , :user_id , :meta_description , :meta_title , :published , :user_id ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .