app/controllers/bigbluebutton/rooms_controller.rb in bigbluebutton_rails-0.0.3 vs app/controllers/bigbluebutton/rooms_controller.rb in bigbluebutton_rails-0.0.4
- old
+ new
@@ -24,11 +24,11 @@
end
def create
@room = BigbluebuttonRoom.new(params[:bigbluebutton_room])
@room.server = @server
-
+
# TODO Generate a random meetingid everytime a room is created
if !params[:bigbluebutton_room].has_key?(:meetingid) or
params[:bigbluebutton_room][:meetingid].blank?
@room.meetingid = @room.name
end
@@ -150,12 +150,12 @@
begin
@room.fetch_is_running?
rescue BigBlueButton::BigBlueButtonException => e
flash[:error] = e.to_s
- render :json => { running: "false", error: "#{e.to_s}" }
+ render :json => { :running => "false", :error => "#{e.to_s}" }
else
- render :json => { running: "#{@room.is_running?}" }
+ render :json => { :running => "#{@room.is_running?}" }
end
end
def end