I'm using Rails 3 and I've ran bundle install and put it in my Gemfile.

On 24 October 2013 22:17, Colin Law <clan...@googlemail.com> wrote:

> On 24 October 2013 21:47, desbest <afanintheho...@gmail.com> wrote:
> > Hi,
> > I'm getting a undefined method `paginate' for #<Class:0x567eb98> even
> though
> > I have gem 'will_paginate' installed.
> > Inside the users_controller I have @users = User.paginate(page:
> > params[:page])
> > so I believe I set everything up to be correct.
> > Can you figure out why the method's undefined, despite installing the
> gem?
>
> Which version of Rails are you using?  If Rails 2 have you referenced
> will_paginate in environment.rb, if rails 3 have you put it in your
> Gemfile and run bundle install?
>
> Colin
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/rubyonrails-talk/LeSOBxXc_70/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsuuf8hyRuxsS58BfYg%3DHWaDu2V3DQ6k%2BLBSZFm8SMuDg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAEZ7cNMs-zs7x2-rms45XmgmPJuSTng987Fqn2vUvjo5WD0E9g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to