Will_paginate


#1

Bonjour apparement le repo du plugin will_paginate est down

svn://errtheblog.com

Quelqu’un aurait t’il le plugin sous le coude à m’envoyer ?

Merci


#2

On 10/9/07, Kpitn removed_email_address@domain.invalid wrote:

Bonjour apparement le repo du plugin will_paginate est down

svn://errtheblog.com

Quelqu’un aurait t’il le plugin sous le coude à m’envoyer ?

Je viens de te l’envoyer en
privé.

Cyril M.
http://blog.shingara.fr


#3

Voilà: http://saiks.org/~webs/will_paginate.tar.gz

Par contre c’est un checkout qui date de aout.

++

Le 9 oct. 07 à 10:46, Kpitn a écrit :


#4

Merci cyril pour ta rapidité !


#5

On 8月30日, 下午8時19分, Colin L. removed_email_address@domain.invalid wrote:

exactly what is happening and make sure the code you post matches the

 c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in start'  c:/ruby/lib/ruby/1.8/webrick/server.rb:23:instart’
 c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start’

I see that the error is from Item.paginate. Â You have not told us
anything about the Item class. Â Can you show us the code for that
class (delete methods that are not relevant before posting) and
confirm the path and filename to that class.

The item.rb of model is :
class Item < ActiveRecord::Base
end

Do I need to add the codes into the item.rb?

I am running out of ideas however.

I am so happy to get your support, because it confuse me for several
months, and I believe you can help me because you own 6 stars in this
Talk.


#6

On 30 August 2010 10:33, Jeff C. removed_email_address@domain.invalid wrote:

and just fetch all records that all works as expected.
17:30:14) [GET]
 [4;35;1mSQL (64.0ms) [0m   [0mSHOW TABLES [0m
 [4;36;1mItem Columns (403.0ms) [0m   [0;1mSHOW FIELDS FROM
items [0m

NoMethodError (undefined method paginate' for #<Class:0x675f980>): Â app/controllers/manage_controller.rb:25:inlist’

Right so the error is in list, that is why I asked for the whole error
message.

 c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start’

I see that the error is from Item.paginate. You have not told us
anything about the Item class. Can you show us the code for that
class (delete methods that are not relevant before posting) and
confirm the path and filename to that class.

I am running out of ideas however.

Colin


#7

On 31 August 2010 03:49, Jeff C. removed_email_address@domain.invalid wrote:

 c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

The item.rb of model is :
class Item < ActiveRecord::Base
end

Do I need to add the codes into the item.rb?

No, what you have looks ok.

Only one more suggestion I think, I seem to remember some-one having a
similar problem and it went away when they used Mongrel instead of
Webrick, though I do not understand why. I can only suggest you try
that, so start the server with
ruby script/server --mongrel
and see what happens. I always use mongrel as for me it loads much
faster.

Colin


#8

On 31 August 2010 10:33, Jeff C. removed_email_address@domain.invalid wrote:

I did run: ruby script/server --mongrel , and got the result is
“server : invalid option --mongrel”.
Where to get the mongrel, and how to fix it up when I run above
command again?

I don’t know, it just worked for me, in fact it defaults to mongrel on
my Ubuntu install. Have you tried googling for rails install mongrel?

Colin


#9

you just need to have mongrel gem installed on your system and ruby script/server will run with it.


#10

On 8月31日, 下午3時57分, Colin L. removed_email_address@domain.invalid wrote:

 c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

Webrick, though I do not understand why. Â I can only suggest you try
that, so start the server with
ruby script/server --mongrel

I did run: ruby script/server --mongrel , and got the result is
“server : invalid option --mongrel”.
Where to get the mongrel, and how to fix it up when I run above
command again?


#11

On 8月31日, 下午9時25分, Samuel F. removed_email_address@domain.invalid wrote:

you just need to have mongrel gem installed on your system and ruby script/server will run with it.

I input : gem install mongrel --include-dependencies and gem install
mongrel_service --include-dependencies

and run the script/server got the result:
c:/ruby/lib/gems/actionpack-2.3.8/lib/…/_trace.erb:23: warning:
parenthesize argument(s) for future version.

then I run the localhost:3000/manage then got the error msg:
undefined method `paginate’ for #Class:0x60f629c

I checked the system status of mongrel, which is empty. which means
the system is not active when I run above commands.


#12

Hi Jeff,

That’s a french speaking mailing-list :slight_smile:

Concerning your problem, it seems will_paginate is not installed.


#13

On 8月31日, 下午5時33分, Jeff C. removed_email_address@domain.invalid wrote:

 c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

Webrick, though I do not understand why. Â I can only suggest you try
that, so start the server with
ruby script/server --mongrel

I did run: ruby script/server --mongrel , and got the result is
“server : invalid option --mongrel”.
Where to get the mongrel, and how to fix it up when I run above
command again?

Someone can give me the answer — how to active the mongrel
successful, and how to fix the invalid option? Thanks.


#14

On 1 September 2010 04:19, Jeff C. removed_email_address@domain.invalid wrote:

c:/ruby/lib/gems/actionpack-2.3.8/lib/…/_trace.erb:23: warning:
parenthesize argument(s) for future version.

Can you post the complete output seen in the terminal when you start
mongrel and enter localhost:3000/manage in the browser.

then I run the localhost:3000/manage then got the error msg:
undefined method `paginate’ for #Class:0x60f629c

I checked the system status of mongrel, which is empty. which means
the system is not active when I run above commands.

What do you mean by the system status of mongrel? If mongrel is not
running I do not see how you get any output at all in the browser.

Also please post complete output of
gem list --local

Colin


#15

On Sep 1, 4:19 am, Jeff C. removed_email_address@domain.invalid wrote:

and run the script/server got the result:
c:/ruby/lib/gems/actionpack-2.3.8/lib/…/_trace.erb:23: warning:
parenthesize argument(s) for future version.

then I run the localhost:3000/manage then got the error msg:
undefined method `paginate’ for #Class:0x60f629c

Are you definitely only calling paginate on ActiveRecord classes? Are
you able to reproduce the problem in a fresh, empty, rails app?

Fred


#16

On 9月8日, 上午4時14分, Colin L. removed_email_address@domain.invalid wrote:

undefined method `paginate’ for #Class:0x60f629c

I checked the system status of mongrel, which is empty. which means
the system is not active when I run above commands.

What do you mean by the system status of mongrel? Â If mongrel is not
running I do not see how you get any output at all in the browser.

The status is space, not running at all. How to activate it?

Also please post complete output of
gem list --local

Here is the complete output of gem list --local:
actionmailer (2.3.8, 2.3.5, 1.2.1)
actionpack (2.3.8, 2.3.5, 1.12.1)
actionwebservice (1.1.2)
activerecord (2.3.8, 2.3.5, 1.14.2)
activeresource (2.3.8, 2.3.5)
activesupport (2.3.8, 2.3.5, 1.3.1)
cgi_multipart_eof_fix (2.5.0)
fxri (0.3.6)
fxruby (1.6.12 mswin32)
gem_plugin (0.2.3)
hpricot (0.6 mswin32)
log4r (1.0.5)
mongrel (1.1.5 x86-mswin32-60)
mongrel_cluster (1.0.5)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mswin32)
paginate (0.1.1)
rack (1.1.0, 1.0.1)
rails (2.3.8, 2.3.5, 1.1.2)
rake (0.8.7, 0.7.3)
rubygems-update (1.3.7, 1.3.6)
sources (0.0.1)
sqlite3-ruby (1.3.0 x86-mswin32-60)
will_paginate (2.3.14)
win32-api (1.0.4 mswin32)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-service (0.5.2 mswin32)
win32-sound (0.4.1)
windows-api (0.2.0)
windows-pr (0.7.2)


#17

On 8 September 2010 03:15, Jeff C. removed_email_address@domain.invalid wrote:

I input : gem install mongrel --include-dependencies and gem install
mongrel_service --include-dependencies

and run the script/server got the result:
c:/ruby/lib/gems/actionpack-2.3.8/lib/…/_trace.erb:23: warning:
parenthesize argument(s) for future version.

Can you post the complete output seen in the terminal when you start
mongrel and enter localhost:3000/manage in the browser.

You have not provided this information.

running I do not see how you get any output at all in the browser.
activerecord (2.3.8, 2.3.5, 1.14.2)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mswin32)
paginate (0.1.1)

Could the fact that you have paginate and will_paginate installed be
an issue? It might be worth removing this one.

Colin


#18

On 9月8日, 下午4時31分, Colin L. removed_email_address@domain.invalid wrote:

you just need to have mongrel gem installed on your system and `ruby
mongrel and enter localhost:3000/manage in the browser.
I checked the system status of mongrel, which is empty. which means
Here is the complete output of gem list --local:
hpricot (0.6 mswin32)
log4r (1.0.5)
mongrel (1.1.5 x86-mswin32-60)
mongrel_cluster (1.0.5)
mongrel_service (0.3.4 i386-mswin32)
mysql (2.8.1 x86-mswin32)
paginate (0.1.1)

Could the fact that you have paginate and will_paginate installed be
an issue? Â It might be worth removing this one.

I did remove all the file and directory of paginate, and got the
result when run the http://localhost:3000/manage after running the
ruby script/server:

Processing ManageController#index (for 127.0.0.1 at 2010-09-09
09:40:06) [GET]
[4;36;1mSQL (2.0ms) [0m [0;1mSHOW TABLES [0m
[4;35;1mItem Columns (4.0ms) [0m [0mSHOW FIELDS FROM items [0m

NoMethodError (undefined method paginate' for #<Class:0x607f0ac>): app/controllers/manage_controller.rb:25:inlist’
app/controllers/manage_controller.rb:4:in `index’

Rendered rescues/_trace (117.0ms)
Rendered rescues/_request_and_response (1.0ms)
Rendering rescues/layout (internal_server_error)


#19

On 9 September 2010 02:44, Jeff C. removed_email_address@domain.invalid wrote:

On 1 September 2010 04:19, Jeff C. removed_email_address@domain.invalid wrote:

parenthesize argument(s) for future version.

Can you post the complete output seen in the terminal when you start
mongrel and enter localhost:3000/manage in the browser.

You have not provided this information.

So what happened to the problem running mongrel?

Colin