On 9 May 2010 09:54, tom <[email protected]> wrote: > 2) based on my snippet, inspect works
"works" .... any chance one of the "working" results is "nil" :-/ > <%=h category.children[index].id %><br> > > gives me: > > Called id for nil, which would mistakenly be 4 -- if you really wanted the > id of nil, use object_id Exactly... > 1) slice: didnt know u can use that on "collections" too, so i give it a > try. Do. > the boundaries are being checked to not run into a nil situation I beg to differ... given the "called id for nil" message... -- 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.

