diff options
author | David Gay <david@davidgay.org> | 2021-05-25 22:02:33 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-25 22:02:33 -0400 |
commit | c4ba54f606c0c4cc5eaa78e108f6529187de3d78 (patch) | |
tree | 775adc8b06a7f04fd5cc2df58e83c985cb6dcbb2 /app/views/characters/hearth | |
parent | 4d68d3dc80138e6cc6a3cbec001dbd77e85649cc (diff) |
Improve hearth crafting selection
Diffstat (limited to 'app/views/characters/hearth')
-rw-r--r-- | app/views/characters/hearth/index.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/characters/hearth/index.html.erb b/app/views/characters/hearth/index.html.erb index c95977e..7baf2bf 100644 --- a/app/views/characters/hearth/index.html.erb +++ b/app/views/characters/hearth/index.html.erb @@ -14,9 +14,9 @@ <% if built_amenity %> <p class="mb-2">Level <%= built_amenity.level %></p> <p class="mb-2"><%= ha.description %></p> - <% if ha.gid == "forge" %> + <% if @amenity_activities[ha.gid.to_sym] %> <%= form_with url: start_activity_path, method: :post do |f| %> - <%= f.select :id, @forge_activities.map { |a| [a.name, a.id] } %> + <%= f.select :id, @amenity_activities[ha.gid.to_sym].map { |a| [a.name, a.id] } %> <%= f.submit "Go" %> <% end %> <% end %> |