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