Trouble with hidden radio buttons

This commit is contained in:
echarp 2018-01-22 00:20:28 +01:00
parent 1fd388ad4f
commit 67d62c40fd
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
-# Choose a region to filter events with -# Choose a region to filter events with
%nav.region_filter %nav.region_filter
%ul= render partial: '/regions/filter_region', %ul= render partial: '/regions/filter_region',
collection: Region.where(region: nil) collection: Region.where(region: nil).includes(:regions)

View File

@ -13,4 +13,4 @@
- if selector_region.regions.present? - if selector_region.regions.present?
.radios .radios
= f.collection_radio_buttons :region_id, = f.collection_radio_buttons :region_id,
Region.where(region: selector_region), :id, :name Region.where(region: selector_region), :id, :name, include_hidden: false