metamaps--metamaps/app/views/items/edit.html.erb

12 lines
527 B
Text
Raw Normal View History

2012-09-24 01:30:48 +00:00
<%= form_for @item, url: item_url do |form| %>
<h3>Edit Item</h3>
<label for="category">Category</label>
<%= select_tag "category", options_from_collection_for_select(ItemCategory.all, "id", "name") %>
<label for="item_name">Title</label>
<%= form.text_field :name %>
<label for="item_desc">Description</label>
<%= form.text_area :desc, class: "description", :rows => 5 %>
<label for="item_link">Link</label>
<%= form.text_field :link, class: "link" %>
<%= form.submit "Update", class: "update" %>
<% end %>