Sunday, August 28, 2011

[Rails] Re: will_paginate generates undefined method paginate

Without your answer, I would probably have witch-hunted forever...
Thanks

hqmq wrote in post #731654:
> I found an easy solution to this problem...
> Stop the WEbrick server and start it again...
>
> Seems dumb I know, but I was using the method where you modify config/
> environment.rb to include this line:
> <code> config.gem 'mislav-will_paginate', :version => '~>
> 2.3.4', :lib => 'will_paginate', :source => 'http://gems.github.com'</
> code>
> it should go right after the: <code>Rails::Initializer.run do |config|
> </code> line
>
> then you perform <code>sudo rake gems:install</code> and it installs
> the gem for you. But it was giving me this error message unti I
> stopped the WEbrick server and started it again.
>
> Go Figure...

--
Posted via http://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