diff --git a/app/views/cards/_golden_toggle.html.erb b/app/views/cards/_golden_toggle.html.erb index e1c475484..f04e14355 100644 --- a/app/views/cards/_golden_toggle.html.erb +++ b/app/views/cards/_golden_toggle.html.erb @@ -1,10 +1,10 @@ -<% if @card.golden? %> - <%= button_to card_goldeness_path(@card), method: :delete, class: "btn btn--reversed" do %> +<% if card.golden? %> + <%= button_to card_goldeness_path(card), method: :delete, class: "btn btn--reversed" do %> <%= icon_tag "star" %> Demote to normal <% end %> <% else %> - <%= button_to card_goldeness_path(@card), class: "btn" do %> + <%= button_to card_goldeness_path(card), class: "btn" do %> <%= icon_tag "star" %> Promote to golden <% end %> diff --git a/app/views/cards/show.html.erb b/app/views/cards/show.html.erb index d7a122b37..2ee0d121e 100644 --- a/app/views/cards/show.html.erb +++ b/app/views/cards/show.html.erb @@ -55,7 +55,7 @@ <%= render "cards/display/perma", card: @card %>