Class: EmailsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- EmailsController
- 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
-
#destroy ⇒ Object
DELETE /emails/1 DELETE /emails/1.json DELETE /emails/1.xml AJAX —————————————————————————-.
Methods inherited from ApplicationController
Instance Method Details
#destroy ⇒ Object
DELETE /emails/1 DELETE /emails/1.json DELETE /emails/1.xml AJAX
13 14 15 16 17 |
# File 'app/controllers/emails_controller.rb', line 13 def destroy @email = Email.find(params[:id]) @email.destroy respond_with(@email) end |