<%= form_for @map, :html => { :multipart => true } do |f| %> <%= f.error_messages %>

<%= f.label :name %>
<%= f.text_field :name %>

<%= f.label :category_id %>
<%= f.select :category_id, Category.ordered.domain(Category::DOMAIN_GAMES).collect{|c| [c, c.id]} %>

<%= f.label :download %>
<%= f.text_field :download %>

<%= f.label :picture %>
<%= f.file_field :picture %>

<%= f.submit 'Update' %>

<% end %>