Will_Paginate needs require statement for "rake db:fixtures:load"
Reported by Scott Becker | June 14th, 2007 @ 07:27 PM
When trying to run "rake db:fixtures:load" I was getting this error:
uninitialized constant WillPaginate::Finder
---
This was easily resolved by putting these lines at the top of vendor/plugins/will_paginate/init.rb:
require 'will_paginate/finder'
require 'will_paginate/view_helpers'
Comments and changes to this ticket
-
Chris Wanstrath June 14th, 2007 @ 07:27 PM
- State changed from new to hold
What version of Rails are you on? 1.2.3? I can't replicate this on edge.
-
Mislav June 14th, 2007 @ 07:27 PM
- State changed from hold to invalid
I also can't replicate. But if you're using the stable branch and it still fails, please reopen this.
-
Chris Wanstrath June 14th, 2007 @ 07:27 PM
- State changed from invalid to resolved
Two people reported this independently, so I fixed in http://require.errtheblog.com/pl....
-
Scott Becker June 14th, 2007 @ 07:27 PM
Cool. I was going to get around to testing this with different versions of Rails and what-not today, but this makes it unnecessary. Thanks!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Everyone's favorite Ruby library for pagination of practically anything!