Sha256: 7266f9303e08c1632e6ceabd406f936772e9e4ff00e30df0d4534455661f90e6

Contents?: true

Size: 383 Bytes

Versions: 9

Compression:

Stored size: 383 Bytes

Contents

<%- width = 66 -%>
<%= '-'*width %>
<% collection.each do |item| -%>
<% view_model = view_model_for(item, self) -%>
<%- result = view_model.render_as(template_name) -%>
<%= '|' + "%-#{width}s"%(result[0,width]) + '|' -%>
<%- p ('|' + "%-#{width}s"%(result[0,width]) + '|') %>
<%= separator || ">#{'-'*(width-2)}<" unless item == collection.entries.last %>
<% end -%>
<%= '-'*width %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
view_models-2.0.1 lib/rails2/generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-2.0.0.ruby19 lib/rails2/generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-2.0.0 lib/rails2/generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.7 generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.6 generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.5 generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.4 generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.3 generators/view_models/templates/views/view_models/collection/_table.text.erb
view_models-1.5.2 generators/view_models/templates/views/view_models/collection/_table.text.erb