Sha256: db854632b2f7a3e2bffaf928b77b5558e6d05582afa5960a06fd35086c257e2f

Contents?: true

Size: 289 Bytes

Versions: 13

Compression:

Stored size: 289 Bytes

Contents

<%
	collection = [['Todos', nil],['Não', false],['Sim', true]]
	selected = params[model.underscore][field] if params[model.underscore].present? and params[model.underscore][field].present?
%>
<%= select_tag "#{model.underscore}[#{field.to_s}]", options_for_select(collection, selected) %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
my_admin-0.1.13 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.12 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.11 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.10 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.9 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.8 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.7 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.6 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.5 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.4 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.3 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.2 app/views/my_admin/fields/filter/type/boolean.html.erb
my_admin-0.1.1 app/views/my_admin/fields/filter/type/boolean.html.erb