Class: Droom::GroupInvitationsController
- Inherits:
-
EngineController
- Object
- ApplicationController
- EngineController
- Droom::GroupInvitationsController
- Defined in:
- app/controllers/droom/group_invitations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#destroy ⇒ Object
11 12 13 14 |
# File 'app/controllers/droom/group_invitations_controller.rb', line 11 def destroy @group_invitation.destroy head :ok end |
#index ⇒ Object
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 |
#new ⇒ Object
21 22 23 |
# File 'app/controllers/droom/group_invitations_controller.rb', line 21 def new respond_with @group_invitation end |