From: Robby Russell Date: 2005-09-25T01:07:43+09:00 Subject: Re: deleting a record from table On Sun, 2005-09-25 at 01:01 +0900, Nick wrote: > 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 > def delete Product.delete(...) redirect_to :action => 'list' end -- /****************************************************** * Robby Russell, Owner.Developer.Geek * PLANET ARGON, Open Source Solutions & Web Hosting * Portland, Oregon | p: 503.351.4730 | f: 815.642.4068 * www.planetargon.com | www.robbyonrails.com *******************************************************/