N
Nick
hey, me again
i want to delete a record (product) from a table
def list
@products = Product.find_all
end
def show
@product = Product.find(@params["id"])
end
def delete
Product.delete(@params["id"])
end
the deleting works but then i get the error htere is no template, but i just
want to delete it and then show all products again (list)
i want to delete a record (product) from a table
def list
@products = Product.find_all
end
def show
@product = Product.find(@params["id"])
end
def delete
Product.delete(@params["id"])
end
the deleting works but then i get the error htere is no template, but i just
want to delete it and then show all products again (list)