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.5.23 templates/app/views/index.html.erb
daddy-0.5.22 templates/app/views/index.html.erb
daddy-0.5.21 templates/app/views/index.html.erb
daddy-0.5.20 templates/app/views/index.html.erb
daddy-0.5.19 templates/app/views/index.html.erb
daddy-0.5.18 templates/app/views/index.html.erb
daddy-0.5.17 templates/app/views/index.html.erb
daddy-0.5.16 templates/app/views/index.html.erb
daddy-0.5.15 templates/app/views/index.html.erb
daddy-0.5.14 templates/app/views/index.html.erb
daddy-0.5.13 templates/app/views/index.html.erb
daddy-0.5.12 templates/app/views/index.html.erb
daddy-0.5.11 templates/app/views/index.html.erb
daddy-0.5.10 templates/app/views/index.html.erb
daddy-0.5.9 templates/app/views/index.html.erb
daddy-0.5.8 templates/app/views/index.html.erb
daddy-0.5.7 templates/app/views/index.html.erb
daddy-0.5.6 templates/app/views/index.html.erb
daddy-0.5.5 templates/app/views/index.html.erb
daddy-0.5.4 templates/app/views/index.html.erb