Sha256: e03e0e2c504d53c8476d392ca5e9ff4a377ab50ee035485c32651b71d0038344

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 Bytes

Contents

- unless params[:tag].present?
  = simple_form_for(@tag_search, url: ecm_tags.tag_searchs_path) do |f|
    = f.input :tag_list
    = f.input :exact, as: :boolean
    = f.button :submit, class: 'btn btn-primary'

#tag_search_result
  - @result.each do |class_name, resources|
    - next if resources.empty?
    %h2= class_name.constantize.model_name.human(count: :other)
    = render partial: "#{class_name.tableize}/#{class_name.demodulize.underscore}", collection: resources, as: class_name.demodulize.underscore.to_sym

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecm_tags-2.2.1 app/views/ecm/tags/tag_searchs/new.haml
ecm_tags-2.2.0 app/views/ecm/tags/tag_searchs/new.haml
ecm_tags-2.1.0 app/views/ecm/tags/tag_searchs/new.haml
ecm_tags-2.0.2 app/views/ecm/tags/tag_searchs/new.haml