Method: Chaskiq::SubscribersController#update
- Defined in:
- app/controllers/chaskiq/subscribers_controller.rb
#update ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'app/controllers/chaskiq/subscribers_controller.rb', line 24 def update find_subscriber if @subscriber.update_attributes(resource_params) && @subscriber.errors.blank? flash[:notice] = "you did it!" @subscription.subscribe! unless @subscription.subscribed? redirect_to campaign_path(@campaign) else render "edit" end end |