%= form_for(@extension) do |f| %>
<% if @extension.errors.any? %>
<%= pluralize(@extension.errors.count, "error") %> prohibited this extension from being saved:
<% @extension.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :author %>
<%= f.text_field :author %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.file_field :preview %>
<%= f.hidden_field :preview_cache %>
<%= f.file_field :extension %>
<%= f.hidden_field :extension_cache %>
<%= f.submit %>
<% end %>