Sha256: a71f44c761425895de7087dbe5e2c44471a7c3896c407526459d93e8fad83300
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 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 -%> <%- { :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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beautiful_scaffold-0.1.5 | lib/generators/templates/app/views/partials/_index_search.html.erb |