def create
      @invite = Invite.new(invite_params)
      @invite.inviting_user = current_user

      if @invite.save
        redirect_to @invite, notice: 'Invite was successfully created.'
      else
        render :new
      end
    end
def create
      @invite = Invite.new(invite_params)
      @invite.inviting_user = current_user

      if @invite.save
        redirect_to @invite, notice: 'Invite was successfully created.'
      else
        render :new
      end
    end
POST /invites