And here is the index file

 <% for spread_type in SpreadType.find_spread_names%>
    <%= spread_type.name %>

    <%

    # this loop works

    for customer_subscription in spread_type.customer_subscriptions
       %>  <%= customer_subscription.customer_id %>
       <%
    end

  # this loop does not work

  #  for ghostleg in spread_type.ghostlegs
  #
  #  end
%>
    <br>
    <br>

    <% end %>


-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to