| <%= error_messages_for 'upload' %> |
| |
| <!--[form:upload]--> |
| <% tabular_form_for :upload, @upload, :url =>{:controller => 'uploads', :action => action, :id => @upload}, :html => {:multipart=> true} do |f| %> |
| <tr><th>Type</th><td><%= f.select :upload_type, ['Image', 'Document'] %></td></tr> |
| <%= f.file_field :file if params[:action] == 'new' || params[:action] == 'home' %> |
| <%= f.text_area :description, :cols => 30, :rows => 3 %> |
| <tr><th></th><td><%= submit_tag 'Submit' %></td></tr> |
| <% end %> |
| <!--[eoform:upload]--> |
| |