On 23 September 2010 16:35, PalaniKannan K <[email protected]> wrote:
Please don't top post it makes it difficult to follow the thread, thanks. > Hi, > > I tried with > > In View > > <% @names.each do |name| %> > <%= name.age %> > <% name.cities.each do |city| %> > <%= city.local_area %> > <% name.countries.each do |country| %> > <%= country.state %> > <% end %> > > This shows no error with no output of city.local_area and country.state. Are you sure it is finding any cities and countries? Try displaying name.cities.count and the same for countries. Even better have a look at the Rails Guide on debugging and use ruby-debug to break in and examine the variables. Colin -- 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.

