Sha256: 869c6b1d777ffa1742a78f193c7d54da535b87a9e90d0a0962f964cba95e5794

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

<%% content_for :body do %>
  <ul id="<%= plural_name %>">
    <%% @<%= "all_" if plural_name == singular_name%><%= plural_name %>.each do |<%= singular_name %>| %>
      <li>
        <%%= link_to <%= singular_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>.<%= title.name %><% end %>, answers.<%= namespacing.underscore %>_<%= singular_name %>_path(<%= singular_name %>) %>
      </li>
    <%% end %>
  </ul>
<%% end %>

<%%= render '/answers/content_page' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
answers-core-0.0.0.2 lib/generators/answers/engine/templates/app/views/answers/namespace/plural_name/index.html.erb
answers-core-0.0.0 lib/generators/answers/engine/templates/app/views/answers/namespace/plural_name/index.html.erb