Fix blank address which are proposed in new event form.
This commit is contained in:
parent
fd91c26ebe
commit
027c8c1c43
@ -33,7 +33,7 @@
|
|||||||
= f.label :address
|
= f.label :address
|
||||||
= f.text_field :address, list: :addresses
|
= f.text_field :address, list: :addresses
|
||||||
%datalist#addresses
|
%datalist#addresses
|
||||||
- Event.group(:address).order('count(address) desc').pluck(:address).each do |address|
|
- Event.where('address is not null').group(:address).order('count(address) desc').pluck(:address).each do |address|
|
||||||
%option= address
|
%option= address
|
||||||
.field.city
|
.field.city
|
||||||
= f.label :city
|
= f.label :city
|
||||||
|
Loading…
Reference in New Issue
Block a user