search for: wasteprepopulate

Displaying 1 result from an estimated 1 matches for "wasteprepopulate".

2006 Apr 22
4
Anyone know how to copy rows?
...ew rows based on those rows. This will be used to intentionally duplicate rows. Did I mention that I was having little luck? I''m from a PHP world, but I''ve been getting really into Rails lately. Here''s what I''ve got(assume an event has_many wastes): def wastePrepopulate @wastes = Waste.find_all @wastes.each do |waste| Event.find(params[:id]).wastes.create(params[:waste]) end flash[:notice] = ''The records have been prepopulated.'' redirect_to :action => "showwastes", :id =>params[:id] end If I feed parameters...