# Problem con :include with pagination in Site5

**URL:** <https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473>\
**Category:** Deployment\
**Created:** [April 9, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473 "2007-04-09T17:11:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![infelix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@infelix](https://www.ruby-forum.com/u/infelix)\
**Post date:** [April 9, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473/1 "2007-04-09T17:11:05Z")

</div>

In the deployment of my Ruby app in Site5 hosting, I found that all  
the calls to the paginate function that have the :nclude option  
produce an error

For example:

@episode\_pages, @episodes = paginate :pod\_updates, :order =\>  
‘pod\_updates.episode\_date DESC’, :per\_page =\> 10, :include =\> :podcast

If i remove the :include part, it works just fine but I need to make  
tht join for the app to work properly.

Somebody has an idea of what could be haappening?

---

<div class="post-metadata">

**Author:** ![infelix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@infelix](https://www.ruby-forum.com/u/infelix)\
**Post date:** [April 9, 2007, 5:12pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473/2 "2007-04-09T17:12:06Z")

</div>

I forgot to mention that this call works perfect in my local  
development site

---

<div class="post-metadata">

**Author:** ![infelix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@infelix](https://www.ruby-forum.com/u/infelix)\
**Post date:** [April 9, 2007, 5:20pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473/3 "2007-04-09T17:20:06Z")

</div>

I believe Site5 is on Ruby 1.8.4 and Rails 1.1.6. Perhaps the :include  
option was added in Rails 1.2?

Are you freezing Rails before deploying?

---

<div class="post-metadata">

**Author:** ![infelix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/df705f/32.png) [@infelix](https://www.ruby-forum.com/u/infelix)\
**Post date:** [April 11, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/problem-con-include-with-pagination-in-site5/91473/4 "2007-04-11T15:18:57Z")

</div>

It was something related to syntax and the version of rails, already  
fixed it!

Thanks for the advice Mike, I’m freezing it right now
