Class: Maktoub::SubscribersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Maktoub::SubscribersController
- Defined in:
- app/controllers/maktoub/subscribers_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
5 6 7 |
# File 'app/controllers/maktoub/subscribers_controller.rb', line 5 def edit @email = params[:email] end |
#update ⇒ Object
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 |