diff --git a/app/models/event.rb b/app/models/event.rb index 2c349bcd..adc74780 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -19,7 +19,7 @@ class Event < ActiveRecord::Base validates :contact, presence: true validates :contact, email: true validates :submitter, email: true - validates :tags, presence: false, format: /\A[\p{Alnum}\s-]*\z/ + validates :tags, presence: true, format: /\A[\p{Alnum}\s-]*\z/ geocoded_by :full_address # after_validation :geocode, if: -> (obj) { obj.address_changed? } diff --git a/app/views/events/_form.html.haml b/app/views/events/_form.html.haml index 0959a694..fd38a569 100644 --- a/app/views/events/_form.html.haml +++ b/app/views/events/_form.html.haml @@ -74,7 +74,7 @@ .helper :markdown #{t '.tags_helper'} - = f.label :tags + = f.label :tags, for: 's2id_autogen1' = f.text_field :tags .actions