Sha256: f4b896cf5dcc3a1ae4a7a683fbd5a421472601aa03837b98336d74ee75df5c4c
Contents?: true
Size: 537 Bytes
Versions: 22
Compression:
Stored size: 537 Bytes
Contents
<div id="associated_<%= field %>"> <%= link_to "#{t(:choose_associated)} (#{many.size})", '#', :terbium_popup => resource_path(record, "associated_#{field}"), :ids => "$$('#associated_#{field} input[type=hidden]').collect(function(element){return $F(element)})" %> <%= hidden_field_tag "#{model_name}[#{field.to_s.singularize}_ids][]" %> <% many.each do |association| %> <%= hidden_field_tag "#{model_name}[#{field.to_s.singularize}_ids][]", association.id, :id => "associated_#{field}_#{association.id}" %> <% end %> </div>
Version data entries
22 entries across 22 versions & 1 rubygems