Fix blank address which are proposed in new event form.

This commit is contained in:
Christian P. MOMON 2014-12-14 22:08:35 +01:00
parent fd91c26ebe
commit 027c8c1c43

View File

@ -33,7 +33,7 @@
= f.label :address
= f.text_field :address, list: :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
.field.city
= f.label :city