diff --git a/app/views/admin/budget_investments/edit.html.erb b/app/views/admin/budget_investments/edit.html.erb index 7aaddf857..e1bed238b 100644 --- a/app/views/admin/budget_investments/edit.html.erb +++ b/app/views/admin/budget_investments/edit.html.erb @@ -52,7 +52,7 @@
<%= f.select(:administrator_id, - @admins.collect { |a| [a.description_or_name_and_email, a.id] }, + @admins.map { |a| [a.description_or_name_and_email, a.id] }, { include_blank: t("admin.budget_investments.edit.undefined") }) %>
diff --git a/app/views/admin/budget_investments/show.html.erb b/app/views/admin/budget_investments/show.html.erb index 3727c5f4b..7d1ceb8b5 100644 --- a/app/views/admin/budget_investments/show.html.erb +++ b/app/views/admin/budget_investments/show.html.erb @@ -37,7 +37,7 @@

<%= t("admin.budget_investments.show.valuator_groups") %>: <% if @investment.valuator_groups.any? %> - <%= @investment.valuator_groups.collect(&:name).join(", ") %> + <%= @investment.valuator_groups.map(&:name).join(", ") %> <% else %> <%= t("admin.budget_investments.show.undefined") %> <% end %> @@ -46,7 +46,7 @@

<%= t("admin.budget_investments.show.assigned_valuators") %>: <% if @investment.valuators.any? %> - <%= @investment.valuators.collect(&:name_and_email).join(", ") %> + <%= @investment.valuators.map(&:name_and_email).join(", ") %> <% else %> <%= t("admin.budget_investments.show.undefined") %> <% end %> diff --git a/app/views/admin/milestones/_form.html.erb b/app/views/admin/milestones/_form.html.erb index a10a09aab..07fe07e8b 100644 --- a/app/views/admin/milestones/_form.html.erb +++ b/app/views/admin/milestones/_form.html.erb @@ -5,7 +5,7 @@

<%= f.select :status_id, - @statuses.collect { |s| [s.name, s.id] }, + @statuses.map { |s| [s.name, s.id] }, { include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") }, { disabled: @statuses.blank? } %> <%= link_to t("admin.milestones.form.admin_statuses"), diff --git a/app/views/officing/booth/new.html.erb b/app/views/officing/booth/new.html.erb index 6cbfeda0f..0b4cda988 100644 --- a/app/views/officing/booth/new.html.erb +++ b/app/views/officing/booth/new.html.erb @@ -11,7 +11,7 @@
<%= f.select :id, - @booths.collect { |booth| [booth.location, booth.id] }, + @booths.map { |booth| [booth.location, booth.id] }, selected: @booths.first, label: false, tabindex: "1" %>