In the controller I have an edit and delete (destroy) method. When I have carried out the action I want to pass a set of variables to a basic "success" view that describes what the success was (ie. Success - you have "deleted a record" or Success - you have "saved the edited record") with the things in quotes being the strings (plus others) that I want to pass. Here is the basic "destroy" methodCan someone give me a hint how to do this.Code:def destroy EdaOfficer.find(params[:id]).destroy #(variavles to be passed to success form) redirect_to :action => 'success' end





Bookmarks