Class: EmailsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/emails_controller.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php


Instance Method Summary collapse

Methods inherited from ApplicationController

#auto_complete

Instance Method Details

#destroyObject

DELETE /emails/1 DELETE /emails/1.json DELETE /emails/1.xml AJAX




15
16
17
18
19
# File 'app/controllers/emails_controller.rb', line 15

def destroy
  @email = Email.find(params[:id])
  @email.destroy
  respond_with(@email)
end