search for: showwastes

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

Did you mean: showcases
2006 Apr 22
4
Anyone know how to copy rows?
...9;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 to it using a form, it will create new records with those parameters, but I can''t get it to use the data from @wastes=Waste.find_all. I''m ultimately trying to set up a way to create records based on existing data. Any he...