This is a hard question for me to even ask so I'll share the code first:
<div class="col-xs-12">
We operate on a pay what you want model. Keep in mind that
<% if action_name == "outdoors" %>
<%= outdoors_donation.html_safe %>
<% elsif action_name == "snowsports" %>
<%= snowsports_donation.html_safe %>
<% end %>
Below, you'll find information on how we calculated your order's suggested donation of $<span id="modal-sentence"></span>.
</div>
Rather than the clunky if statement, I'd rather just be able to inject action_name directly into the variable that's being called.... something like
<%= "#{action_name}_donation".html_safe %>
But not sure what this would actually be
Thanks!
donations[action_name].