Sha256: 3b4abb05c271a23ce0f9a185805114d32a500b569d9541639860009fd425c8de
Contents?: true
Size: 571 Bytes
Versions: 24
Compression:
Stored size: 571 Bytes
Contents
<% field_name = "#{field.to_s.singularize}" field_id = "#{model.underscore}_#{field_name}" collection = field_collection(application, model, field, object) collection.insert(0, ['Todos','']) collection_selected = params[model.underscore][field_name] if params[model.underscore].present? and params[model.underscore][field_name].present? #collection_selected = object.send(field.to_s.singularize).id unless object.send(field.to_s.singularize).blank? %> <%= select_tag "#{model.underscore}[#{field_name}]", options_for_select(collection, collection_selected) %>
Version data entries
24 entries across 24 versions & 1 rubygems