Sha256: 73960ae0bb4f81ebd74c746f6b59423aee56e75319fe97b11181a1e76aa4dcae

Contents?: true

Size: 508 Bytes

Versions: 10

Compression:

Stored size: 508 Bytes

Contents

<%- attributes.each do |a| -%>
  <%- next if @beautiful_attributes.include?(a.name + ':color') -%>
  <%- attribute = "" -%>
  <%- caption = a.name.capitalize -%>
  <%- if @beautiful_attributes.include?(a.name + ':references') then -%>
    <%- attribute = "_id" -%>
  <%- elsif @beautiful_attributes.include?(a.name + ':richtext') then -%>
    <%- attribute = "_fulltext" -%>
  <%- end -%>
  <%%= ransack_field("<%= singular_table_name %>", "<%= a.name %><%= attribute %>", f, "<%= caption %>") %>
<%- end -%>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
beautiful_scaffold-0.3.3 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.2 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.1 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc6 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc5 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc4 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc3 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc2 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.rc1 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.3.0.pre lib/generators/templates/app/views/partials/_index_search.html.erb