just redirect_to @invitation.invitable and delete the group_or_discussion_path method, it's unnecessary