remove actions from clothes controller

fix sentry issue POKEMON-COUTURE-1
This commit is contained in:
Lili (Tlapka) 2021-10-20 15:20:59 +02:00
parent ee21d34e02
commit 7a3c829e6a
2 changed files with 1 additions and 24 deletions

View File

@ -22,7 +22,7 @@ defmodule PokemonCoutureWeb.Router do
pipe_through :browser
get "/", PageController, :index
resources "/clothes", ClothesController
resources "/clothes", ClothesController, only: [:index, :show]
end

View File

@ -1,23 +0,0 @@
<%= form_for @changeset, @action, fn f -> %>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= label f, :name %>
<%= text_input f, :name %>
<%= error_tag f, :name %>
<%= label f, :location %>
<%= text_input f, :location %>
<%= error_tag f, :location %>
<%= label f, :game %>
<%= text_input f, :game %>
<%= error_tag f, :game %>
<div>
<%= submit "Save" %>
</div>
<% end %>