Class: Droom::GroupInvitationsController

Inherits:
EngineController
  • Object
show all
Defined in:
app/controllers/droom/group_invitations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



25
26
27
28
29
30
31
# File 'app/controllers/droom/group_invitations_controller.rb', line 25

def create
  if @group_invitation.save
    render :partial => "created"
  else
    respond_with @group_invitation
  end
end

#destroyObject



11
12
13
14
# File 'app/controllers/droom/group_invitations_controller.rb', line 11

def destroy
  @group_invitation.destroy
  head :ok
end

#indexObject



16
17
18
19
# File 'app/controllers/droom/group_invitations_controller.rb', line 16

def index
  @event = Droom::Event.find(params[:event_id])
  render :partial => 'attending_groups'
end

#newObject



21
22
23
# File 'app/controllers/droom/group_invitations_controller.rb', line 21

def new
  respond_with @group_invitation
end