# \<r:children:each\> should not return virtual?

**URL:** <https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947>\
**Category:** Radiant CMS\
**Created:** [February 27, 2007, 1:36am UTC](https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947 "2007-02-27T01:36:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [February 27, 2007, 1:36am UTC](https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947/1 "2007-02-27T01:36:14Z")

</div>

If I use:

\<r:children:each\>

I was thinking that it should not include FileNotFound etc… type pages.  
(Pages that return true for “virtual?”)

Does this make sense to everyone else? I’ll file a ticket with a fix,  
but I just wanted to check.

Can you think of a use-case where you would want “virtual” pages listed  
along with the normal ones?

---

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [February 27, 2007, 2:00am UTC](https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947/2 "2007-02-27T02:00:42Z")

</div>

So I figured out that if my page type includes  
ArchiveIndexTagsAndMethods, then it won’t show in the list generated by  
r:children

but I still can’t figure out why…

anybody know?

---

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [February 27, 2007, 2:06am UTC](https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947/3 "2007-02-27T02:06:37Z")

</div>

and it’s because virtual is a column on the page…

And so after adding

def virtual?  
true  
end

to my page type, I had to re-edit it to save this to the database.

You can all ignore my pre-mature ramblings

---

<div class="post-metadata">

**Author:** ![igotimac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/85f322/32.png) [@igotimac](https://www.ruby-forum.com/u/igotimac)\
**Post date:** [February 27, 2007, 6:25am UTC](https://www.ruby-forum.com/t/reach-should-not-return-virtual/86947/4 "2007-02-27T06:25:58Z")

</div>

Jacob,

There’s a bug that I was working on the other day where virtual pages  
are not saved as such the first time. The workaround is to load the  
page and save it again. You can do that until the bugfix comes in.

Sean
