app/views/languages/index.html.haml
%h1 Listing languages
%table
%tr
%th Name
%th Short code
%th
%th
%th
- @languages.each do |language|
%tr
%td= language.name
%td= language.short_code
%td= link_to 'Show', language
%td= link_to 'Edit', edit_language_path(language)
%td= link_to 'Destroy', language, :method => :delete, :data => { :confirm => 'Are you sure?' }
%br
= link_to 'New Language', new_language_path