The event tags field is now required

This commit is contained in:
echarp 2014-12-14 21:48:52 +01:00
parent f70d2ae5ef
commit 986c1177c4
2 changed files with 2 additions and 2 deletions

View File

@ -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? }

View File

@ -74,7 +74,7 @@
.helper
:markdown
#{t '.tags_helper'}
= f.label :tags
= f.label :tags, for: 's2id_autogen1'
= f.text_field :tags
.actions