Installing will_paginate

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 => ‘

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


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?