Class: Admin::AdoptAnimalsController

Inherits:
CrudController
  • Object
show all
Defined in:
app/controllers/admin/adopt_animals_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject

DELETE /biters/1 DELETE /biters/1.xml


15
16
17
18
19
20
# File 'app/controllers/admin/adopt_animals_controller.rb', line 15

def destroy
  @adopt_animal = AdoptAnimal.find_by_animal_id_and_adoption_contact_id(params[:id], params[:adopt])
  @adopt_animal.destroy

  redirect_to(:back, :notice => 'Animal successfully removed.')
end