# Installing will\_paginate

**URL:** <https://www.ruby-forum.com/t/installing-will-paginate/185536>\
**Category:** Rails\
**Created:** [March 22, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/installing-will-paginate/185536 "2010-03-22T12:22:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESESES](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f0a364/32.png) [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Post date:** [March 22, 2010, 12:22pm UTC](https://www.ruby-forum.com/t/installing-will-paginate/185536/1 "2010-03-22T12:22:16Z")

</div>

I installed the mislav-will\_paginate gem and put the following in my  
environment.rb file

config.gem ‘mislav-will\_paginate’,  
:lib =\> ‘will\_paginate’,  
:source =\> ‘[http://gems.github.com](http://gems.github.com)’

but why would I still be getting an undefined method error?

---

<div class="post-metadata">

**Author:** ![ESESES](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/f0a364/32.png) [@ESESES](https://www.ruby-forum.com/u/ESESES)\
**Post date:** [March 22, 2010, 12:33pm UTC](https://www.ruby-forum.com/t/installing-will-paginate/185536/2 "2010-03-22T12:33:25Z")

</div>

Hi,

Sorry if I ask something evident. The thing you posted is telling your  
app that the gem is used.

But did you really installed it using rake gems:install?  
I assume you require will\_paginate in your controller right?

Cheers.
