Sha256: 24a7fb3e549052992ab637f0eceebe0cdf94bd49b77fb8dbca84cb914f0536d6

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 Bytes

Contents

<%%- model_class = <%= model.name.sub(/\ATemplate::/, '::Template::') %> -%>
<div class="page-header">
  <h1><%%=t '.title', :default => model_class.model_name.human.pluralize.titleize %></h1>
</div>
<%%= render '<%= plural_table_name %>/table', <%= plural_table_name %>: @<%= plural_table_name %> %>

<%%= link_to t('.new', :default => t("helpers.links.new")),
            new_<%= singular_controller_routing_path %>_path,
            :class => 'btn btn-primary' %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.9 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.8 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.7 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.6 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.5 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.4 lib/templates/erb/scaffold/index.html.erb
model_base_generators-0.3.3 lib/templates/erb/scaffold/index.html.erb