Sha256: b0b3b49915692fca90633f47045baab773d60ddf3da0f8213a8fe189caca3649

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

<%- attributes.each do |a| -%>
  <%- 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

8 entries across 8 versions & 1 rubygems

Version Path
beautiful_scaffold-0.1.4 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.3 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.2 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.1 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.0 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.0.8 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.0.7 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.0.6 lib/generators/templates/app/views/partials/_index_search.html.erb