metamaps--metamaps/app/views/people/new.html.erb

8 lines
439 B
Text
Raw Normal View History

2012-09-23 02:39:12 +00:00
<%= form_for @person || Person.new, url: people_path do |form| %>
<%= form.text_field :name, label: "Name", class: "name" %>
<%= form.text_field :desc, label: "Description", class: "description" %>
<%= form.text_field :link, label: "Link", class: "link" %>
<%= select_tag "ingroups", options_from_collection_for_select(Group.all, "id", "name"), { :multiple => true } %>
<%= form.submit "Add Person", class: "add" %>
<% end %>