Class: ThinkFeelDoDashboard::ModeratorsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/think_feel_do_dashboard/moderators_controller.rb

Overview

Allows Coaches/Clinicians to moderate. That is, log in as a participant

Instance Method Summary collapse

Instance Method Details

#createObject

POST /coach/groups/:group_id/moderates



10
11
12
13
14
# File 'app/controllers/think_feel_do_dashboard/moderators_controller.rb', line 10

def create
  authorize! :moderate, @group
   @group.moderating_participant
  redirect_to social_networking.social_networking_profile_path
end