<% entry.components['values'].each do |component| %> <%== render(:partial => 'component_value', :locals => {:result => component.result} ) %> <% end %>