Sha256: 64d1f9fa2de4645d953e61396a2666a3188b91c25b1d5ad8768b873eb99a6799

Contents?: true

Size: 699 Bytes

Versions: 11

Compression:

Stored size: 699 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 -%>

<%- { :created_at => "Created At", :updated_at => "Updated At", :id => "Id" }.each{ |k,v| -%>
  <%%= ransack_field("<%= singular_table_name %>", "<%= k.to_s %>", f, "<%= v %>") %>
<%- } -%>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
beautiful_scaffold-0.2.7 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.6 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.5 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.4 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.3 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.2 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.1 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.2.0 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.9 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.8 lib/generators/templates/app/views/partials/_index_search.html.erb
beautiful_scaffold-0.1.7 lib/generators/templates/app/views/partials/_index_search.html.erb