Hi Matt, Thanks a bunch for the helpful code. I didn't post my model associations but I did have all of the associations in place, like you suggested, with the exception of placing in a built-in order for position. So I added that and changed sub_pages to subpages throughout the code and also added in the scope which makes a lot of sense.
After testing the code, everything works as intended now. I'm going to spend some time mulling over what it is I just did thanks to your help, but I wanted to reply and let you know that it's all working fine now with your code changes and suggestions in place. I appreciate it a great deal. Take care mate. -- 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.

