Module: ClassificationsHelper

Defined in:
app/helpers/classifications_helper.rb

Instance Method Summary collapse

Instance Method Details

#label_select(facet, label_id) ⇒ Object



2
3
4
5
6
# File 'app/helpers/classifications_helper.rb', line 2

def label_select(facet, label_id)
  options = (:option, "")
  options << options_from_collection_for_select(facet.labels, :id, :caption, label_id)
  select_tag "classification[label_ids][]", options
end