Sha256: 55bc12511951e5f195b97707d9f5ec74d50360c8857f2457e192521c868e2b70
Contents?: true
Size: 566 Bytes
Versions: 16
Compression:
Stored size: 566 Bytes
Contents
ruby: raise 'Form parameter is required' if form.blank? # You should be able to set target model to nil if you want, # though it should default to the form object's class if !defined?(target_class) target_class = form.object.class.to_s end templates = PresentationDataTemplate templates = templates.where(target_class: target_class) if target_class p Please select a template for this presentation data. = form.collection_select :presentation_data_template_id, templates.asc(:title), :id, :title, {include_blank: true}, class: 'form-control'
Version data entries
16 entries across 16 versions & 1 rubygems