I am really hoping someone can help me. I am attempting to integrate OpenTok on my Ruby On Rails application on my already built app. I have used the following article to attempt the integration and to adapt it to my specific site. I've followed the step by step instruction here: https://railsfornovice.wordpress.com/2013/01/01/video-chatting-in-ruby-on-rails/
I need help because I am currently getting the error message:
uninitialized constant OpenTok::OpenTokSDK
and it appears it is not authenticating with Tokbox.
Here is my code:
def index
@rooms = Room.where(:public => true).order("created_at DESC")
@new_room = Room.new
end
def create
session = @opentok.create_session request.remote_addr
params[:room][:sessionId] = session.session_id
@new_room = Room.new(params[:room])
respond_to do |format|
if @new_room.save
format.html { redirect_to("/party/"+@new_room.id.to_s) }
else
format.html { render :controller => 'rooms',
:action => "index" }
end
end
end
def party
@room = Room.find(params[:id])
@tok_token = @opentok.generate_token :session_id =>@room.sessionId
end
Any help is greatly appreciated.
Thanks, Andrew