Hello, I have created an application on my macbook and it works well Then when I moved the rails files to an linux server I have a strange problem. 1/10 of the application get one error Logs -------------- NoMethodError in LogsController#index undefined method `count'' for WEBrick::Log:Class RAILS_ROOT: script/../config/.. ----------- Very strange any advice ? Best Regards Henrik More logs ------------ Processing LogsController#index (for 172.22.3.28 at 2006-10-19 15:38:25) [GET] Session ID: e95efafba7d7f4dfaac8c15dd3cc8274 Parameters: {"action"=>"index", "controller"=>"logs"} NoMethodError (undefined method `count'' for WEBrick::Log:Class): /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:172:in `count_collection_for_pagination'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:196:in `paginator_and_collection_for'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:129:in `paginate'' /app/controllers/logs_controller.rb:12:in `list'' /app/controllers/logs_controller.rb:3:in `index'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2 /lib/commands/servers/webrick.rb:59 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' script/server:3 --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
esroberts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-10 15:52 UTC
Re: Strange works on Mac but not on linux
I am experiencing the same exact problem and would appreciate any advice. Henrik Ekenberg wrote:> Hello, > > I have created an application on my macbook and it works well > Then when I moved the rails files to an linux server I have a strange > problem. > 1/10 of the application get one error > > Logs > -------------- > NoMethodError in LogsController#index > > undefined method `count'' for WEBrick::Log:Class > > RAILS_ROOT: script/../config/.. > > ----------- > > Very strange any advice ? > > > Best Regards > > Henrik > > > More logs > > > ------------ > Processing LogsController#index (for 172.22.3.28 at 2006-10-19 15:38:25) > [GET] > Session ID: e95efafba7d7f4dfaac8c15dd3cc8274 > Parameters: {"action"=>"index", "controller"=>"logs"} > > > NoMethodError (undefined method `count'' for WEBrick::Log:Class): > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:172:in > `count_collection_for_pagination'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:196:in > `paginator_and_collection_for'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:129:in > `paginate'' > /app/controllers/logs_controller.rb:12:in `list'' > /app/controllers/logs_controller.rb:3:in `index'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in > `perform_action_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in > `perform_action_without_benchmark'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue'' > /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in > `perform_action_without_rescue'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in > `perform_action'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in > `process_without_filters'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in > `process_without_session_management_support'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in > `process'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in > `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in > `handle_dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:81:in > `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in > `dispatch'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2 > /lib/commands/servers/webrick.rb:59 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30 > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in > `require'' > script/server:3 > > ------=_Part_148205_5652103.1161265727458 > Content-Type: text/html; charset=ISO-8859-1 > X-Google-AttachSize: 4623 > > Hello,<br><br>I have created an application on my macbook and it works well<br>Then when I moved the rails files to an linux server I have a strange problem.<br>1/10 of the application get one error <br><br>Logs<br>-------------- > <br><h1> > NoMethodError > > in LogsController#index > > </h1> > <pre>undefined method `count'' for WEBrick::Log:Class</pre> > > > > <p><code>RAILS_ROOT: script/../config/..</code></p><p>-----------<br><code></code></p><p><code>Very strange any advice ?</code></p><p><br><code></code></p><p><code>Best Regards</code></p><p><code>Henrik</code></p><p><br> > <code></code></p><p><code>More logs</code></p><p><br><code></code></p><p><code>------------</code></p>Processing LogsController#index (for <a href="http://172.22.3.28">172.22.3.28</a> at 2006-10-19 15:38:25) [GET]<br> Session ID: e95efafba7d7f4dfaac8c15dd3cc8274 > <br> Parameters: {"action"=>"index", "controller"=>"logs"}<br><br><br>NoMethodError (undefined method `count'' for WEBrick::Log:Class):<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.12.1/lib/action_controller/pagination.rb:172:in `count_collection_for_pagination''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/pagination.rb:196:in `paginator_and_collection_for''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.12.1/lib/action_controller/pagination.rb:129:in `paginate''<br> /app/controllers/logs_controller.rb:12:in `list''<br> /app/controllers/logs_controller.rb:3:in `index''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack- > 1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue''<br> /usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in `perform_action_without_rescue'' > <br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/rescue.rb:82:in `perform_action''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in `process_without_filters'' > <br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:377:in `process_without_session_management_support''<br> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in `process'' > <br> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch''<br> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in `handle_dispatch''<br> /usr/local/lib/ruby/gems/1.8/gems/rails- > 1.1.2/lib/webrick_server.rb:81:in `service''<br> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service''<br> /usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run''<br> /usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > <br> /usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread''<br> /usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start''<br> /usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start''<br> /usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'' > <br> /usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start''<br> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in `dispatch''<br> /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59 > <br> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''<br> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require''<br> /usr/local/lib/ruby/gems/1.8/gems/rails- > 1.1.2/lib/commands/server.rb:30<br> /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''<br> /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in `require'' > <br> script/server:3<br><br> > > ------=_Part_148205_5652103.1161265727458----~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is a wild guess here, but maybe its confusing a model you are using (Log I am guessing), with Webrick''s own Log class? Try renaming your model to something else. I could just be talking crap though :o) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
David Fitzgibbon wrote:> This is a wild guess here, but maybe its confusing a model you are using > (Log I am guessing), with Webrick''s own Log class? Try renaming your > model to something else. > > I could just be talking crap though :o)Sounds like a possibility. I''d also make sure you''re running the exact same versions of everything on both machines. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Excellent! That was the problem. I changed my model name and I''m successfully getting the default scaffolding. Thanks for the suggestion E Rob Nichols-2 wrote:> > > This is a wild guess here, but maybe its confusing a model you are using > (Log I am guessing), with Webrick''s own Log class? Try renaming your > model to something else. > > I could just be talking crap though :o) > > -- > Posted via http://www.ruby-forum.com/. > > > > >-- View this message in context: http://www.nabble.com/Strange-works-on-Mac-but-not-on-linux-tf2473541.html#a7284409 Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---