Sha256: 437f93ebce0b0f6cf96a2dd4e531402f6c572d5b8d8251738ace27a99464200a

Contents?: true

Size: 1.1 KB

Versions: 141

Compression:

Stored size: 1.1 KB

Contents

<div class="actions">
  <%= @tag_begin %>= link_to '追加', new_<%= @resource %>_path <%= @tag_end %>
</div>

<table>
  <tr>
<% @model_class.columns.each do |column| -%>
<% next if %w{ id deleted created_at updated_at }.include?(column.name.to_s) -%>
    <th><%= @tag_begin %>= <%= @model_class.name %>.human_attribute_name :<%= column.name %> <%= @tag_end %></th>
<% end -%>
    <th colspan="2"></th>
  </tr>
  
  <%= @tag_begin %> @<%= @resources %>.each do |<%= @short_name %>| <%= @tag_end %>
    <tr>
<% @model_class.columns.each do |column| -%>
<% next if %w{ id deleted created_at updated_at }.include?(column.name.to_s) -%>
      <td><%= @tag_begin %>= <%= @short_name %>.<%= column.name %> <%= @tag_end %></td>
<% end -%>
      <td>
        <%= @tag_begin %>= link_to '編集', edit_<%= @resource %>_path(<%= @short_name %>) <%= @tag_end %>
      </td>
      <td>
        <%= @tag_begin %>= link_to '削除', <%= @resource %>_path(<%= @short_name %>), :method => 'delete', :confirm => '削除します。よろしいですか?' <%= @tag_end %>
      </td>
    </tr>
  <%= @tag_begin %> end <%= @tag_end %>
</table>

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
daddy-0.2.16 lib/tasks/generate/templates/index.html.erb
daddy-0.2.15 lib/tasks/generate/templates/index.html.erb
daddy-0.2.14 lib/tasks/generate/templates/index.html.erb
daddy-0.2.13 lib/tasks/generate/templates/index.html.erb
daddy-0.2.12 lib/tasks/generate/templates/index.html.erb
daddy-0.2.11 lib/tasks/generate/templates/index.html.erb
daddy-0.2.10 lib/tasks/generate/templates/index.html.erb
daddy-0.2.9 lib/tasks/generate/templates/index.html.erb
daddy-0.2.8 lib/tasks/generate/templates/index.html.erb
daddy-0.2.7 lib/tasks/generate/templates/index.html.erb
daddy-0.2.6 lib/tasks/generate/templates/index.html.erb
daddy-0.2.5 lib/tasks/generate/templates/index.html.erb
daddy-0.2.4 lib/tasks/generate/templates/index.html.erb
daddy-0.2.3 lib/tasks/generate/templates/index.html.erb
daddy-0.2.1 lib/tasks/generate/templates/index.html.erb
daddy-0.1.26 lib/tasks/generate/templates/index.html.erb
daddy-0.1.25 lib/tasks/generate/templates/index.html.erb
daddy-0.1.24 lib/tasks/generate/templates/index.html.erb
daddy-0.1.23 lib/tasks/generate/templates/index.html.erb
daddy-0.1.22 lib/tasks/generate/templates/index.html.erb