show.html.haml revision a33eefb160c569a821373e7df062e699e4af3bda
%h2= @page_title = resource.name
%li= link_to 'List users', collection_path
%dl
- for attr in resource_class.attribute_names
%dt= attr
%dd
- val = resource.send(attr).to_s
- if val.blank?
\-
- elsif val =~ /^_id$/
= attr.sub(/_id$/,'')
- else
= val