In my Rails
app I already have the following code:
<% %w(number_of_students edit_class_name tech_help).each do |modal| %>
<%= render "common/modals/#{modal}" %>
<% end %>
There will be a few more modals added into app/views/common/modals
and instead of explicitly listing them out in the %w()
I was wanting to loop through the common/modals
directory and just render each file.