%= error_messages_for 'document' %>
<%=l(:field_category)%> <%= options_from_collection_for_select @categories, "id", "name", @document.category_id %>
<%=l(:field_title)%> * <%= text_field 'document', 'title', :size => 60 %>
<%=l(:field_description)%> <%= text_area 'document', 'description', :cols => 60, :rows => 5 %>