app/controllers/classified_listings_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 classified_listing_params
      params.require(:classified_listing).permit(
        {category_ids: []},
        :title,
        :description,
        :listing_plan_id,
        :video,
        images: [],
        categories_attributes: [:id, :name, :_destroy],
        services_attributes: [:id, :name, :_destroy],
        company_attributes: [:name, :country, :state, :city, :street, :building, :zip_code, :email, :phone_number, :website, :logo ]
      )
    end
def classified_listing_params params . require ( :classified_listing ) . permit ( { category_ids : [ ] } , :title , :description , :listing_plan_id , :video , images : [ ] , categories_attributes : [ :id , :name , :_destroy ] , services_attributes : [ :id , :name , :_destroy ] , company_attributes : [ :name , :country , :state , :city , :street , :building , :zip_code , :email , :phone_number , :website , :logo ] ) 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 .