agenda-libre-ruby/app/views/regions/index.html.haml

20 lines
364 B
Plaintext

%h1 Listing regions
%table
%tr
%th Name
%th
%th
%th
- @regions.each do |region|
%tr
%td= region.name
%td= link_to 'Show', region
%td= link_to 'Edit', edit_region_path(region)
%td= link_to 'Destroy', region, :method => :delete, :data => { :confirm => 'Are you sure?' }
%br
= link_to 'New Region', new_region_path