Sha256: 00bd9002f647373996387c410e9537a74ef3d1e0daf859feeb0f2f848c332d29
Contents?: true
Size: 568 Bytes
Versions: 8
Compression:
Stored size: 568 Bytes
Contents
:ruby column_type_dom_id = form.dom_id(field).sub(field.method_name.to_s, "") attr = column_type_dom_id.gsub("frame_variants_attributes", '').gsub(/^_/, '[').gsub(/_$/, ']') = #TODO: Add JavaScript to limit selectors here - options_for_klass(@object.class).each do |option| %h5= option.name - option.option_values.each do |option_value| %p = check_box_tag "frame[variants_attributes]#{attr}[option_value_ids][]", option_value.id, form.object.option_values.include?(option_value), :style => "margin:-2px 5px 0px 0px;" %span= option_value.name
Version data entries
8 entries across 8 versions & 1 rubygems