On 8月30日, 下午4時08分, Colin Law <[email protected]> wrote:
> On 29 August 2010 23:44, Jeff Chen <[email protected]> wrote:
>
> > The manage_c0ntroller.rb:
>
> Did you note the first request in my previous email - not to top post?
>  That means not to post your new message before the quotes of the
> previous message, but to insert your reply into the previous message.
> Now I have scroll up and down this email looking at what I asked and
> back up to see your response.  It also makes it less likely that you
> will forget to answer a question.
>
> In particular you have not confirmed that you do not get any errors
> when you start the server.

Yes, confirm there is no any errors when start the server

>
> Also please can you confirm that if you remove the calls to paginate
> and just fetch all records that all works as expected.

Yes, all works when remove call to paginate

>
> Further comments below.
>
>
>
> > class ManageController < ApplicationController
>
> >  def index
> >    list
> >    render :action => 'list'
> >  end
>
> Again I am having to cut and paste from below, if you had not top
> posted I would not have had to do this.  You previously said the error
> is
>
> >> >  NoMethodError in ManageController#index
> >> > undefined method `paginate' for #<Class:0x679f940>
>
> I don't see any call to paginate so that is a bit odd.  Please confirm
> exactly what is happening and make sure the code you post matches the
> error message.  Post the full error trace for the message please.

Here is the development.log:
Processing ManageController#index (for 127.0.0.1 at 2010-08-30
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'
  app/controllers/manage_controller.rb:4:in `index'
  c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
  c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
  c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
  c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
  c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
  c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
  c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
  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'

Rendered rescues/_trace (144.0ms)
Rendered rescues/_request_and_response (8.0ms)
Rendering rescues/layout (internal_server_error)

>
> And once again please don't top post.

Hope the post is correct this time. Thanks.

>
> Colin

-- 
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