The event tags field is now required
This commit is contained in:
parent
f70d2ae5ef
commit
986c1177c4
@ -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? }
|
||||
|
@ -74,7 +74,7 @@
|
||||
.helper
|
||||
:markdown
|
||||
#{t '.tags_helper'}
|
||||
= f.label :tags
|
||||
= f.label :tags, for: 's2id_autogen1'
|
||||
= f.text_field :tags
|
||||
|
||||
.actions
|
||||
|
Loading…
Reference in New Issue
Block a user