diff options
| author | realtradam <[email protected]> | 2020-12-02 19:26:28 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2020-12-02 19:26:28 -0500 |
| commit | d13b636bd654244f894943c2968a7386e8379605 (patch) | |
| tree | 410809bae61eac943e1af19ecfd2c2f31143c796 /app/views/nodes/index.html.erb | |
| download | rails-tree-style-activerecord-d13b636bd654244f894943c2968a7386e8379605.tar.gz rails-tree-style-activerecord-d13b636bd654244f894943c2968a7386e8379605.zip | |
initial
Diffstat (limited to 'app/views/nodes/index.html.erb')
| -rw-r--r-- | app/views/nodes/index.html.erb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb new file mode 100644 index 0000000..2a14880 --- /dev/null +++ b/app/views/nodes/index.html.erb @@ -0,0 +1,15 @@ +<h1> suh </h1> + +<% @rootnodes.each do |rootnode| %> + <tr> + <td>PARENT: <%= rootnode.title %></td> + </tr><br> + <em> + <% rootnode.children.each do |node| %> + <tr> + <td>CHILD: <%= node[:title] %></td> + </tr><br> + <% end %> + </em> +<% end %> + |
