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

Version Path
my_admin-0.1.13 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.12 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.11 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.10 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.9 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.8 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.7 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.6 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.5 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.4 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.3 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.2 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.1.1 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.12 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.11 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.10 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.9 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.8 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.7 app/views/my_admin/fields/filter/type/list.html.erb
my_admin-0.0.6 app/views/my_admin/fields/filter/type/list.html.erb