diff options
Diffstat (limited to 'app/views/categories/_edit.html.erb')
-rw-r--r-- | app/views/categories/_edit.html.erb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/categories/_edit.html.erb b/app/views/categories/_edit.html.erb new file mode 100644 index 0000000..4a2da94 --- /dev/null +++ b/app/views/categories/_edit.html.erb @@ -0,0 +1,6 @@ +<h3>Edit <%= @category.presence&.name || 'new category' %></h3> +<h2>Context: <%= @taxonomy %></h2> + +<%= form_with model: [@taxonomy,@category], url: controller.action_name == 'new' ? taxonomy_categories_path(taxonomy: @taxonomy) : category_path(@category) do |f| %> + <%= render partial: 'form', locals: { category: category, f: f } %> +<% end %> |