On Tue, Aug 11, 2009 at 12:36 PM, Sijo Kg
<[email protected]>wrote:

>
> Hi Karthik
>
>  For example consider this
>
> data_array = []
> Contract.all.each do |c|
>  data_array << [c,c.agencies]
> end
>
>    Now in view you can iterate thru this like
>
> data_array.each do |arr|
>  puts arr[0].name
>  arr[1].each do |sub_arr|
>  puts sub_arr.name
>  end
> end
>
>        You can modify this according to your needs May be there some
> other easier methods
>
>
> Sijo
>

Hi Sijo

Thank you Thank you

Great Thank you

-- 
Karthik.k
Mobile - +91-9894991640


>
> --
> 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