Editing <%= singular_name %>

<%% facebook_form_for(@<%= singular_name %>) do |f| %> <%%= f.error_messages %> <% for attribute in attributes -%> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> <% end -%> <%%= f.buttons "Update" %> <%% end %> <%%= link_to 'Show', @<%= singular_name %> %> | <%%= link_to 'Back', <%= plural_name %>_path %>