Class: Maktoub::SubscribersController

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

Instance Method Summary collapse

Instance Method Details

#editObject



5
6
7
# File 'app/controllers/maktoub/subscribers_controller.rb', line 5

def edit
	@email = params[:email]
end

#updateObject



9
10
11
12
13
14
15
16
# File 'app/controllers/maktoub/subscribers_controller.rb', line 9

def update
	if params[:email].blank?
		@message = "email is required"
		render :edit, :status => 400
	else
		Maktoub.unsubscribe params[:email]
	end
end