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.9.9 templates/app/views/index.html.erb
daddy-0.9.8 templates/app/views/index.html.erb
daddy-0.9.7 templates/app/views/index.html.erb
daddy-0.9.6 templates/app/views/index.html.erb
daddy-0.9.5 templates/app/views/index.html.erb
daddy-0.9.4 templates/app/views/index.html.erb
daddy-0.9.3 templates/app/views/index.html.erb
daddy-0.9.2 templates/app/views/index.html.erb
daddy-0.9.1 templates/app/views/index.html.erb
daddy-0.9.0 templates/app/views/index.html.erb
daddy-0.8.1 templates/app/views/index.html.erb
daddy-0.8.0 templates/app/views/index.html.erb
daddy-0.7.9 templates/app/views/index.html.erb
daddy-0.7.8 templates/app/views/index.html.erb
daddy-0.7.7 templates/app/views/index.html.erb
daddy-0.7.6 templates/app/views/index.html.erb
daddy-0.7.5 templates/app/views/index.html.erb
daddy-0.7.4 templates/app/views/index.html.erb
daddy-0.7.3 templates/app/views/index.html.erb
daddy-0.7.2 templates/app/views/index.html.erb