use portal url also in test invite
This commit is contained in:
parent
e247b39d53
commit
b230231b53
|
@ -36,7 +36,7 @@ class UsersController < ApplicationController
|
|||
|
||||
# POST /rooms/1/users/1/test_invite
|
||||
def test_invite
|
||||
url = join_room_url(@user.token)
|
||||
url = user_elections_url(@user.token)
|
||||
RoomMailer.with(room_id: params[:room_id], user: @user, url: url).invite.deliver_now
|
||||
respond_to do |format|
|
||||
format.html { redirect_to room_users_url, notice: "Sent test invitation." }
|
||||
|
|
Loading…
Reference in New Issue