This happens because p isn't loaded when p. Total_entries is called from the script. In irb printing the value after setting p causes it to be loaded.
You can work around it by reloading before calling total_entries like this: you = User. First p = u.items. Paginate(page: 1) p.
Reload puts p. Total_entries To me this seems like a bug in will_paginate that should be reported.
This happens because p isn't loaded when p. Total_entries is called from the script. In irb printing the value after setting p causes it to be loaded.
You can work around it by reloading before calling total_entries, like this: you = User. First p = u.items. Paginate(page: 1) p.
Reload puts p. Total_entries To me this seems like a bug in will_paginate that should be reported.
You're right. It works now but I have some other problems with DataMapper when I use it with will_paginate so I decided not to use will_paginate. Thanks for help!
– chg Nov 17 at 11:52.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.