diff options
| author | realtradam <[email protected]> | 2020-12-02 23:55:40 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2020-12-02 23:55:40 -0500 |
| commit | e6d86fe2b907b6be57bab88396ab8b27fa95d580 (patch) | |
| tree | 4206ca2919060dc9badb448641f3fe1a59ce6963 /app/views/nodes/edit.html.erb | |
| parent | d13b636bd654244f894943c2968a7386e8379605 (diff) | |
| download | rails-tree-style-activerecord-e6d86fe2b907b6be57bab88396ab8b27fa95d580.tar.gz rails-tree-style-activerecord-e6d86fe2b907b6be57bab88396ab8b27fa95d580.zip | |
known bugs fixed
Diffstat (limited to 'app/views/nodes/edit.html.erb')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb new file mode 100644 index 0000000..0b64046 --- /dev/null +++ b/app/views/nodes/edit.html.erb @@ -0,0 +1,21 @@ +<h1>edit wiki page</h1> +<%= form_with(model: @node, 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, :selected => @node&.parent&.id %> + + + <p> + <%= form.submit %> + </p> +<% end %> + +<% link_to 'Back', nodes_path %> |
