Forum: Rails France Will_paginate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
22c95921dd234e5f55aa48467d9a16e3?d=identicon&s=25 Kpitn (Guest)
on 2007-10-09 10:47
(Received via mailing list)
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
2fd0206c71a1b22a9cc6293f38537461?d=identicon&s=25 Cyril Mougel (shingara)
on 2007-10-09 10:58
(Received via mailing list)
On 10/9/07, Kpitn <pierre.basile@gmail.com> 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 Mougel
http://blog.shingara.fr
5454237fb255a31b5948c71d5db9290b?d=identicon&s=25 Jordan Bracco (Guest)
on 2007-10-09 10:59
(Received via mailing list)
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 :
22c95921dd234e5f55aa48467d9a16e3?d=identicon&s=25 Kpitn (Guest)
on 2007-10-09 11:00
(Received via mailing list)
Merci cyril pour ta rapidité !
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-08-31 07:45
(Received via mailing list)
On 30 August 2010 10:33, Jeff Chen <jeffchen1453@gmail.com> 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:in `list'

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
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-08-31 09:45
(Received via mailing list)
On 8月30日, 下午8時19分, Colin Law <clan...@googlemail.com> 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:in `start'
> >  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.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-08-31 10:10
(Received via mailing list)
On 31 August 2010 03:49, Jeff Chen <jeffchen1453@gmail.com> 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
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-08-31 11:34
(Received via mailing list)
On 8月31日, 下午3時57分, Colin Law <clan...@googlemail.com> 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?
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-08-31 12:07
(Received via mailing list)
On 31 August 2010 10:33, Jeff Chen <jeffchen1453@gmail.com> 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
1f55f9c9866962e3e8fff60fdc3fa6c0?d=identicon&s=25 Samuel Soares flores (samflores)
on 2010-08-31 15:59
(Received via mailing list)
you just need to have mongrel gem installed on your system and `ruby
script/server` will run with it.
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-09-01 05:20
(Received via mailing list)
On 8月31日, 下午9時25分, Samuel Flores <samflo...@gmail.com> 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.
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-09-07 12:17
(Received via mailing list)
On 8月31日, 下午5時33分, Jeff Chen <jeffchen1...@gmail.com> 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.
059ed46172a087063ce26250e44c8627?d=identicon&s=25 Fernando Perez (fernando)
on 2010-09-07 16:36
Hi Jeff,

That's a french speaking mailing-list :)

Concerning your problem, it seems will_paginate is not installed.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-09-07 22:16
(Received via mailing list)
On 1 September 2010 04:19, Jeff Chen <jeffchen1453@gmail.com> 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
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-09-08 04:18
(Received via mailing list)
On 9月8日, 上午4時14分, Colin Law <clan...@googlemail.com> 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)
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2010-09-08 09:15
(Received via mailing list)
On Sep 1, 4:19 am, Jeff Chen <jeffchen1...@gmail.com> 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
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-09-08 10:33
(Received via mailing list)
On 8 September 2010 03:15, Jeff Chen <jeffchen1453@gmail.com> 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
Bd599257d84d1b0c983679e91be3a903?d=identicon&s=25 Jeff Chen (Guest)
on 2010-09-09 03:45
(Received via mailing list)
On 9月8日, 下午4時31分, Colin Law <clan...@googlemail.com> 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:in `list'
  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)
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2010-09-09 09:08
(Received via mailing list)
On 9 September 2010 02:44, Jeff Chen <jeffchen1453@gmail.com> wrote:
>> >> On 1 September 2010 04:19, Jeff Chen <jeffchen1...@gmail.com> 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
This topic is locked and can not be replied to.