summaryrefslogtreecommitdiffhomepage
path: root/app/views/nodes/new.html.erb
blob: ee0adb60b0bf9e201c9e2544a75b86cc82f44b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h1>new wiki page</h1>
<%= form_with scope: :node, url: nodes_path, local: true do |form| %>
  <p>
  <%= form.label :title %><br>
  <%= form.text_field :title %>
  </p>

  <p>
  <%= form.label :content %><br>
  <%= form.text_area :content %>
  </p>

  <%= form.collection_select :parent, @nodes, :id, :title, include_blank: true %>

  <p>
  <%= form.submit %>
  </p>
<% end %>