blob: 4a2da94bb047a483f3ec226e4511b37b62d3332e (
plain)
1
2
3
4
5
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 %>
|