diff options
Diffstat (limited to 'app/views/categories/edit.html.erb')
-rw-r--r-- | app/views/categories/edit.html.erb | 8 |
1 files changed, 8 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..57da660 --- /dev/null +++ b/app/views/categories/edit.html.erb @@ -0,0 +1,8 @@ +<div class="mx-auto md:w-2/3 w-full"> + <h1 class="font-bold text-4xl">Editing category</h1> + + <%= render "form", category: @category %> + + <%= link_to "Show this category", @category, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> + <%= link_to "Back to categories", categories_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %> +</div> |