From 5fde28051b17e0f498bc9bb09666c2567d4c776a Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 22 Jun 2021 22:15:41 -0400 Subject: Fix being unable to change combat styles --- CHANGELOG.md | 3 ++- app/views/characters/show.html.erb | 2 +- config/routes.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3192ef0..115a130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,8 @@ All notable changes to this project will be documented in this file. ### Fixed - Couldn't unlock rusted lockboxes due to equipment requirement being set incorrectly. -- Crafting bluster powder was granting fluxseethe XP instead of spicework XP +- Couldn't change combat styles. +- Crafting bluster powder was granting fluxseethe XP instead of spicework XP. ## [0.1.11.2] - 2021-06-16 diff --git a/app/views/characters/show.html.erb b/app/views/characters/show.html.erb index 96a87f8..ce8c461 100644 --- a/app/views/characters/show.html.erb +++ b/app/views/characters/show.html.erb @@ -31,7 +31,7 @@
<% if @character == current_char %>

Combat Styles

- <%= form_with url: character_combat_styles_path(character_id: @character) do |f| %> + <%= form_with url: combat_styles_character_path(@character) do |f| %> <%= f.label :offensive_style, "Offensive" %> <%= f.select :offensive_style, Character.offensive_styles.keys.to_a, selected: @character.offensive_style %> diff --git a/config/routes.rb b/config/routes.rb index fefd12f..6e435f2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -24,7 +24,7 @@ Rails.application.routes.draw do end resources :characters, only: [:show, :new, :create] do - post "/combat_styles", to: "characters#set_combat_styles" + post "/combat_styles", to: "characters#set_combat_styles", on: :member scope module: :characters do get "/rankings", to: "rankings#index" get :bestiary, to: "bestiary#index" -- cgit v1.2.3