I have a database table with records and I show them on a view page, as below.
my question is: If I click "Destroy" Button the corresponding "quote" should not be deleted from Database but it should be removed from view page for my browser only (using cookies?) (not affected for other computers). How can I implement this ? Thank you.
Destroy view is as below:
<%= link_to "Destroy",quotation_path(p),:method=>:delete %>
and controller:
def destroy
@quotation = Quotation.find(params[:id])
@quotation.destroy
respond_to do |format|
format.html { redirect_to(quotations_url) }
format.xml { head :ok }
end
end