handle errors and fix join form

This commit is contained in:
Josh
2018-06-11 13:05:54 -04:00
parent 2b0f75e62b
commit 2b065eb7fa
23 changed files with 114 additions and 239 deletions

View File

@ -35,14 +35,6 @@ class ApplicationController < ActionController::Base
end
helper_method :allow_greenlight_users?
# Generate a URL to start a meeting.
def owner_meeting_url
opts = default_meeting_options
opts[:user_is_moderator] = true
@room.meeting.join_path(current_user.name, opts)
end
helper_method :owner_meeting_url
# Determines if a form field needs the is-invalid class.
def form_is_invalid?(obj, key)
'is-invalid' if !obj.errors.messages[key].empty?