我的会话中存储了以下内容:
session[:quoteResponse]['6000']['something'][...]
session[:quoteResponse]['6000']['something_else'][...]
session[:quoteResponse]['8000']['something'][...]
session[:quoteResponse]['8000']['something_else'][...]
session[:quoteResponse]['10000']['something'][...]
session[:quoteResponse]['10000']['something_else'][...]
我如何遍历它们以实现以下目标?
<div class="product">
<%= radio_button_tag 'form[baseMiles]', '6000' %>
<label for="form_baseMiles_6000">6,000 Policy Miles</label>
<a class="need-more-miles" href="#">Need more miles? <span>View</span></a>
</div>
<div class="product">
<%= radio_button_tag 'form[baseMiles]', '8000' %>
<label for="form_baseMiles_8000">8,000 Policy Miles</label>
<a class="need-more-miles" href="#">Need more miles? <span>View</span></a>
</div>
<div class="product">
<%= radio_button_tag 'form[baseMiles]', '10000' %>
<label for="form_baseMiles_10000">10,000 Policy Miles</label>
<a class="need-more-miles" href="#">Need more miles? <span>View</span></a>
</div>