Class NewsletterBlacklistController
In: app/controllers/newsletter_blacklist_controller.rb
Parent: ApplicationController

Methods

destroy   index  

Public Instance methods

[Source]

    # File app/controllers/newsletter_blacklist_controller.rb, line 9
 9:   def destroy
10:     @newsletter_blacklist = NewsletterBlacklist.find(params[:id])
11:     @newsletter_blacklist.destroy
12:     flash[:notice] = "Address removed from blacklist"
13:     redirect_to :action => "index"
14:   end

[Source]

   # File app/controllers/newsletter_blacklist_controller.rb, line 5
5:   def index
6:     @newsletter_blacklists = NewsletterBlacklist.find(:all,:order => "mail asc")
7:   end

[Validate]