On 9月8日, 下午4時31分, Colin Law <[email protected]> wrote:
> On 8 September 2010 03:15, Jeff Chen <[email protected]> wrote:
>
>
>
>
>
> > On 9月8日, 上午4時14分, Colin Law <[email protected]> wrote:
> >> On 1 September 2010 04:19, Jeff Chen <[email protected]> wrote:
>
> >> > On 8月31日, 下午9時25分, Samuel Flores <[email protected]> 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.
>
> >> 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.
>
>
>
>
>
> >> > 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.
>
> > 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)
>
> 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)
>
> Colin
>
> > 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)

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to