# Will\_paginate resulting in server 500 error

**URL:** <https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951>\
**Category:** Rails\
**Created:** [January 1, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951 "2010-01-01T19:45:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 1, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/1 "2010-01-01T19:45:18Z")

</div>

Hello there,

On my site I have a basic search form that uses find\_by\_ferret which  
will return users within the site and render the data that matches the  
search criteria

If multiple rows are returned, the rows are rendered, and then  
paginated, if more that X are returned. Sounds simple, (and worked  
fine in dev)

However, In Production, I get a server(500) error: (We’re sorry, but  
something went wrong.

We’ve been notified about this issue and we’ll take a look at it  
shortly.)

When I look in the production.log the following is returned:

ActionView::TemplateError (undefined method `will\_paginate’ for  
#ActionView::Base:0xb5c6dc24) on line #26 of app/views/buddies/  
\_search\_form.rhtml:  
23:  
24: Your search results are below:   
   
  
25:  
26: \<%= will\_paginate @buddies %\>  
27: \<% end %\>  
28: \<%= render :partial=\>“result\_summary” %\>  
29: \<% end %\>

although I understand the error, I dont get how it worked in dev, and  
not in prod…

Any ideas?

Many, many Thanks

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 1, 2010, 11:49pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/2 "2010-01-01T23:49:56Z")

</div>

On Jan 1, 6:43 pm, RubyonRails\_newbie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 28: \<%= render :partial=\>“result\_summary” %\>  
> 29: \<% end %\>
> 
> although I understand the error, I dont get how it worked in dev, and  
> not in prod…

Sounds like you didn’t install the will\_paginate gem on your  
production machine

Fred

> Any ideas?
> 
> Many, many Thanks

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 2, 2010, 12:16pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/3 "2010-01-02T12:16:43Z")

</div>

I think will\_paginate is installed… should I be checking this in gem  
list --remote ?

Presumably installed at root level too?

Id best take another peek…

Thanks for the response…

On Jan 1, 10:48 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > 23:  
> > Sounds like you didn’t install the will\_paginate gem on your  
> > production machine
> 
> Fred
> 
> > Any ideas?
> 
> > Many, many Thanks

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 2, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/4 "2010-01-02T14:18:27Z")

</div>

On Jan 2, 11:15 am, RubyonRails\_newbie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I think will\_paginate is installed… should I be checking this in gem  
> list --remote ?

–remote means it searches for gems on the gem servers - not relevant  
here.

> Presumably installed at root level too?

What do you mean by root?

Fred

> > On Jan 1, 6:43 pm, RubyonRails\_newbie [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> > 
> > > 26: \<%= will\_paginate @buddies %\>  
> > > Fred
> 
> > > Any ideas?
> 
> > > Many, many Thanks

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 2, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/5 "2010-01-02T17:06:26Z")

</div>

On 02 Jan 2010, at 16:53, RubyonRails\_newbie wrote:

> > What do you mean by root?
> 
> When i log onto my vhost, there is a root folder.
> 
> Should it be installed here, or actually where my app resides?
> 
> May be a daft question - sorry! 🙂

Instead of messing around, just freeze all the gems and even rails  
itself in the app and upload that to your host. It’s quite obvious you  
are using shared hosting and you won’t have root access (or even local  
folder ssh access) to the server.

rake gems:unpack:dependencies  
rake rails:freeze:gems

Best regards

Peter De Berdt

–

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

---

<div class="post-metadata">

**Author:** ![craigrails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c2a13f/32.png) [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Post date:** [January 2, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/will-paginate-resulting-in-server-500-error/180951/6 "2010-01-02T16:54:43Z")

</div>

> What do you mean by root?

When i log onto my vhost, there is a root folder.

Should it be installed here, or actually where my app resides?

May be a daft question - sorry! 🙂

On 2 Jan, 13:16, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Id best take another peek…
> 
> > > > Many, many Thanks  
> > > > –

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 removed\_email\_address@domain.invalid.  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid.  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).
