diff --git a/app/controllers/publics_controller.rb b/app/controllers/publics_controller.rb index 0d6df2933..e7b994ff5 100644 --- a/app/controllers/publics_controller.rb +++ b/app/controllers/publics_controller.rb @@ -26,7 +26,7 @@ class PublicsController < ApplicationController begin @user = Person.first(:id => params[:id]).owner rescue NoMethodError => e - Rails.logger.error("Received post #{params[:xml]} for nonexistent person #{params[:id}") + Rails.logger.error("Received post #{params[:xml]} for nonexistent person #{params[:id]}") return end Rails.logger.debug "PublicsController has received: #{params[:xml]}" diff --git a/app/models/group.rb b/app/models/group.rb index 0f40d6d9b..0ff534bea 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -2,6 +2,7 @@ class Group include MongoMapper::Document key :name, String + validates_presence_of :name key :person_ids, Array key :request_ids, Array