From c4ba54f606c0c4cc5eaa78e108f6529187de3d78 Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 22:02:33 -0400 Subject: Improve hearth crafting selection --- app/views/characters/hearth/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') 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 %>

Level <%= built_amenity.level %>

<%= ha.description %>

- <% 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 %> -- cgit v1.2.3