show.html.haml revision c2a43487f95ec97c9e0c2c71641b39465799d0ff
%h2= @page_title = resource.name
%dl
- for attr in resource_class.attribute_names
%dt= attr
%dd
- if attr =~ /^_id$/
= attr.sub(/_id$/,'')
- else
= resource.send(attr)
%p= link_to 'List', collection_path