[Rails] Re: error: nested-routes with nested-model having foreign keys

2009-10-24 Thread nin_d
I see some issue with eager loading. This post is little confusing. I will create another one. --~--~-~--~~~---~--~~ 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 rubyonra

[Rails] Re: error: nested-routes with nested-model having foreign keys

2009-10-23 Thread nin_d
it is test not testcase! On Oct 24, 9:40 am, Sijo k g wrote: > Hi > > > 20: <% @tests.each do |testcase| %> > > 21:   > > 22:     <%=h test.status %> > > 23:     <%=h test.defunct %> > > 24:     <%=h test.project.title %> > > 25:     <%=h test.owner.username %> > >      Is it actually |testcase

[Rails] Re: error: nested-routes with nested-model having foreign keys

2009-10-23 Thread Sijo k g
Hi > 20: <% @tests.each do |testcase| %> > 21: > 22: <%=h test.status %> > 23: <%=h test.defunct %> > 24: <%=h test.project.title %> > 25: <%=h test.owner.username %> Is it actually |testcase| or |test| ? Sijo -- Posted via http://www.ruby-forum.com/. --~--~-

[Rails] Re: error: nested-routes with nested-model having foreign keys

2009-10-23 Thread nin_d
I observed that eager loading works when there is only one entry in tests model. Strange! Any suggestions? On Oct 23, 9:56 pm, nin_d wrote: > Hi, > > I have this Test, User and Project models where every test belongs_to > a project and project has_many tests. > Test also belongs_to User as 'own