On 24 August 2010 13:56, pravin mishra <[email protected]> wrote:
> [...]
>>> i had added in ENVIRNMENT.RBĀ  file
>
> require 'will_paginate'

require is now out of obsolete, Instead use

  config.gem 'will_paginate'

in environment.rb inside the Initializer block.

Colin

>
> when i am running server then
>
>
> C:\InstantRails-2.0-win_2\rails_apps\pagination>ruby script/server
> => Booting Mongrel
> => Rails 2.3.8 application starting on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
>
> finally on browser error is coming this
>
> undefined method `paginate' for #<Class:0x471c448>

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

Reply via email to