diff options
author | David Gay <david@davidgay.org> | 2021-06-22 22:15:41 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-22 22:15:41 -0400 |
commit | 5fde28051b17e0f498bc9bb09666c2567d4c776a (patch) | |
tree | 628e5af0329857267934c705a4ad97040954f12a | |
parent | bf06c3419659ddd5dfd848d5bdde3975069e037a (diff) |
Fix being unable to change combat styles
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | app/views/characters/show.html.erb | 2 | ||||
-rw-r--r-- | 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 @@ <div class="my-2"> <% if @character == current_char %> <h2 class="text-xl mb-2">Combat Styles</h2> - <%= 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" |