app/controllers/admin/articles_controller.rb
# 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 article_params
    params.require(:article).permit(:published, {keyword_ids: []}, :description, :author,
      :published_at, :kind, :image, :image_cache, :remove_image, :title, :content, :youtube_url, :link,
      slides_attributes: [:id, :slideable_id, :slideable_type, :image, :image_cache, :remove_image, :_destroy])
  end
def article_params params . require ( :article ) . permit ( :published , { keyword_ids : [ ] } , :description , :author , :published_at , :kind , :image , :image_cache , :remove_image , :title , :content , :youtube_url , :link , slides_attributes : [ :id , :slideable_id , :slideable_type , :image , :image_cache , :remove_image , :_destroy ] ) 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 .