Monday, August 30, 2010

[Rails] Re: will_paginate

On 8月30日, 下午7時30分, Raony Vieira ferreira <li...@ruby-forum.com> wrote:
> > NoMethodError (undefined method `paginate' for #<Class:0x675f980>):
> >   app/controllers/manage_controller.rb:25:in `list'
> >   app/controllers/manage_controller.rb:4:in `index'
> >   c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
> >   c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
> >   c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
>
> > Rendered rescues/_trace (144.0ms)
> > Rendered rescues/_request_and_response (8.0ms)
> > Rendering rescues/layout (internal_server_error)
>
> I don't know but try, check the will_paginate version and write in
> evironment.rb between the "Rails::Initializer.run do |config|" and the
> last end this

>
> config.gem 'will_paginate', :version => 'your version'
>
> and restart the server and check

1. Checking the version:
gem list -- local -> will_paginate <2.3.14>

2. and I add below code into environment:

config.gem 'will_paginate', :version => '2.3.14'

3. Restart the server, and got the result:
undefined method `paginate' for #<Class:0x66a2718>
>
> --
> Posted viahttp://www.ruby-forum.com/.

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate