Hi ,
I am running on Vista with webrick ...
When I generate controllers , models and views I get an error as
under.
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
dependencies.rb:105:in `const_missing''
C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in
`index''
I tried reinstalling but kept stumbling on this.
gem -v
1.3.2
rails -v
2.3.2
ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) {i385-mswin32]
The full stack trace is as under if that helps
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
dependencies.rb:105:in `const_missing''
C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in
`index''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:1322:in `send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:1322:in `perform_action_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
filters.rb:617:in `call_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
core_ext/benchmark.rb:17:in `ms''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
core_ext/benchmark.rb:10:in `realtime''
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
core_ext/benchmark.rb:17:in `ms''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
rescue.rb:160:in `perform_action_without_flash''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
flash.rb:141:in `perform_action''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:523:in `send''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:523:in `process_without_filters''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
filters.rb:606:in `process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:391:in `process''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
base.rb:386:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
routing/route_set.rb:433:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
dispatcher.rb:88:in `dispatch''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
dispatcher.rb:111:in `_call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
dispatcher.rb:82:in `initialize''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:29:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:29:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:9:in `cache''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
query_cache.rb:28:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
connection_adapters/abstract/connection_pool.rb:361:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/head.rb:9:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/methodoverride.rb:24:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
params_parser.rb:15:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
rewindable_input.rb:25:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
session/cookie_store.rb:93:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
reloader.rb:9:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
failsafe.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/lock.rb:11:in `synchronize''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/lock.rb:11:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
dispatcher.rb:106:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:
31:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/urlmap.rb:46:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/urlmap.rb:40:in `each''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/urlmap.rb:40:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/
log_tailer.rb:17:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/content_length.rb:13:in `call''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/handler/webrick.rb:46:in `service''
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''
C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
vendor/rack-1.0/rack/handler/webrick.rb:13:in `run''
C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require''
C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require''
script/server:3
Have you tried looking at afflnetworks_controller.rb around line 5, the error message suggests there is a problem there. It is difficult to help without more information. 2009/4/22 PNDUR <pattabhi.nanduri-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> > Hi , > > I am running on Vista with webrick ... > When I generate controllers , models and views I get an error as > under. > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > dependencies.rb:105:in `const_missing'' > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in > `index'' > > I tried reinstalling but kept stumbling on this. > > gem -v > 1.3.2 > rails -v > 2.3.2 > ruby -v > ruby 1.8.6 (2008-08-11 patchlevel 287) {i385-mswin32] > > The full stack trace is as under if that helps > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > dependencies.rb:105:in `const_missing'' > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in > `index'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:1322:in `send'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:1322:in `perform_action_without_filters'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > filters.rb:617:in `call_filters'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > filters.rb:610:in `perform_action_without_benchmark'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue'' > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > core_ext/benchmark.rb:17:in `ms'' > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > core_ext/benchmark.rb:10:in `realtime'' > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > core_ext/benchmark.rb:17:in `ms'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > benchmarking.rb:68:in `perform_action_without_rescue'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > rescue.rb:160:in `perform_action_without_flash'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > flash.rb:141:in `perform_action'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:523:in `send'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:523:in `process_without_filters'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > filters.rb:606:in `process'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:391:in `process'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > base.rb:386:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > routing/route_set.rb:433:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > dispatcher.rb:88:in `dispatch'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > dispatcher.rb:111:in `_call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > dispatcher.rb:82:in `initialize'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > query_cache.rb:29:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > query_cache.rb:29:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > connection_adapters/abstract/query_cache.rb:34:in `cache'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > query_cache.rb:9:in `cache'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > query_cache.rb:28:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > connection_adapters/abstract/connection_pool.rb:361:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/head.rb:9:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/methodoverride.rb:24:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > params_parser.rb:15:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > rewindable_input.rb:25:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > session/cookie_store.rb:93:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > reloader.rb:9:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > failsafe.rb:11:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/lock.rb:11:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/lock.rb:11:in `synchronize'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/lock.rb:11:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > dispatcher.rb:106:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb: > 31:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/urlmap.rb:46:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/urlmap.rb:40:in `each'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/urlmap.rb:40:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/ > log_tailer.rb:17:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/content_length.rb:13:in `call'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/handler/webrick.rb:46:in `service'' > 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'' > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > vendor/rack-1.0/rack/handler/webrick.rb:13:in `run'' > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111 > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require'' > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31: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?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for your reply Colin
Yes, I did.
Line 5 reads is @afflnetworks = Afflnetworks.........
The default scaffold commmand generated line 5 as under. In both cases
I get the same above error
def index
@afflnetworks = Afflnetworks.all
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @afflnetworks }
end
end
I changed it to as follows.
def index
@afflnetworks = Afflnetworks.find(:all)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @afflnetworks }
end
end
On Apr 22, 4:05 am, Colin Law
<clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
wrote:> Have you tried looking at afflnetworks_controller.rb around line 5, the
> error message suggests there is a problem there. It is difficult to help
> without more information.
>
> 2009/4/22 PNDUR
<pattabhi.nand...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>
>
>
>
>
> > Hi ,
>
> > I am running on Vista with webrick ...
> > When I generate controllers , models and views I get an error as
> > under.
>
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> > dependencies.rb:105:in `const_missing''
> > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in
> > `index''
>
> > I tried reinstalling but kept stumbling on this.
>
> > gem -v
> > 1.3.2
> > rails -v
> > 2.3.2
> > ruby -v
> > ruby 1.8.6 (2008-08-11 patchlevel 287) {i385-mswin32]
>
> > The full stack trace is as under if that helps
>
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> > dependencies.rb:105:in `const_missing''
> > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in
> > `index''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:1322:in `send''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:1322:in `perform_action_without_filters''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > filters.rb:617:in `call_filters''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > filters.rb:610:in `perform_action_without_benchmark''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > benchmarking.rb:68:in `perform_action_without_rescue''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> > core_ext/benchmark.rb:17:in `ms''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> > core_ext/benchmark.rb:10:in `realtime''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/
> > core_ext/benchmark.rb:17:in `ms''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > benchmarking.rb:68:in `perform_action_without_rescue''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > rescue.rb:160:in `perform_action_without_flash''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > flash.rb:141:in `perform_action''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:523:in `send''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:523:in `process_without_filters''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > filters.rb:606:in `process''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:391:in `process''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > base.rb:386:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > routing/route_set.rb:433:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > dispatcher.rb:88:in `dispatch''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > dispatcher.rb:111:in `_call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > dispatcher.rb:82:in `initialize''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > query_cache.rb:29:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > query_cache.rb:29:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > connection_adapters/abstract/query_cache.rb:34:in `cache''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > query_cache.rb:9:in `cache''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > query_cache.rb:28:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/
> > connection_adapters/abstract/connection_pool.rb:361:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/head.rb:9:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/methodoverride.rb:24:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > params_parser.rb:15:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > rewindable_input.rb:25:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > session/cookie_store.rb:93:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > reloader.rb:9:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > failsafe.rb:11:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/lock.rb:11:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/lock.rb:11:in `synchronize''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/lock.rb:11:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > dispatcher.rb:106:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb:
> > 31:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/urlmap.rb:46:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/urlmap.rb:40:in `each''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/urlmap.rb:40:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/
> > log_tailer.rb:17:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/content_length.rb:13:in `call''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/handler/webrick.rb:46:in `service''
> > 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''
> > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
> > vendor/rack-1.0/rack/handler/webrick.rb:13:in `run''
> > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111
> > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `gem_original_require''
> > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> > `require''
> > script/server:3- Hide quoted text -
>
> - Show quoted text -
The same thing also happens when I call any method in the controllers and all the controllers. Think it is more than just that one line of code. On Apr 22, 9:06 am, PNDUR <pattabhi.nand...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks for your reply Colin > > Yes, I did. > > Line 5 reads is @afflnetworks = Afflnetworks......... > > The default scaffold commmand generated line 5 as under. In both cases > I get the same above error > > def index > @afflnetworks = Afflnetworks.all > > respond_to do |format| > format.html # index.html.erb > format.xml { render :xml => @afflnetworks } > end > end > > I changed it to as follows. > > def index > @afflnetworks = Afflnetworks.find(:all) > > respond_to do |format| > format.html # index.html.erb > format.xml { render :xml => @afflnetworks } > end > end > > On Apr 22, 4:05 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > > > > > Have you tried looking at afflnetworks_controller.rb around line 5, the > > error message suggests there is a problem there. It is difficult to help > > without more information. > > > 2009/4/22PNDUR<pattabhi.nand...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > > > Hi , > > > > I am running on Vista with webrick ... > > > When I generate controllers , models and views I get an error as > > > under. > > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > dependencies.rb:105:in `const_missing'' > > > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in > > > `index'' > > > > I tried reinstalling but kept stumbling on this. > > > > gem -v > > > 1.3.2 > > > rails -v > > > 2.3.2 > > > ruby -v > > > ruby 1.8.6 (2008-08-11 patchlevel 287) {i385-mswin32] > > > > The full stack trace is as under if that helps > > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > dependencies.rb:105:in `const_missing'' > > > C:/ROR_lpapp042109/app/controllers/afflnetworks_controller.rb:5:in > > > `index'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:1322:in `send'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:1322:in `perform_action_without_filters'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > filters.rb:617:in `call_filters'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > filters.rb:610:in `perform_action_without_benchmark'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > benchmarking.rb:68:in `perform_action_without_rescue'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > core_ext/benchmark.rb:17:in `ms'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > core_ext/benchmark.rb:10:in `realtime'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > core_ext/benchmark.rb:17:in `ms'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > benchmarking.rb:68:in `perform_action_without_rescue'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > rescue.rb:160:in `perform_action_without_flash'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > flash.rb:141:in `perform_action'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:523:in `send'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:523:in `process_without_filters'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > filters.rb:606:in `process'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:391:in `process'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > base.rb:386:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > routing/route_set.rb:433:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > dispatcher.rb:88:in `dispatch'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > dispatcher.rb:111:in `_call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > dispatcher.rb:82:in `initialize'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > query_cache.rb:29:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > query_cache.rb:29:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > connection_adapters/abstract/query_cache.rb:34:in `cache'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > query_cache.rb:9:in `cache'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > query_cache.rb:28:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/ > > > connection_adapters/abstract/connection_pool.rb:361:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/head.rb:9:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/methodoverride.rb:24:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > params_parser.rb:15:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > rewindable_input.rb:25:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > session/cookie_store.rb:93:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > reloader.rb:9:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > failsafe.rb:11:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/lock.rb:11:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/lock.rb:11:in `synchronize'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/lock.rb:11:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > dispatcher.rb:106:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/static.rb: > > > 31:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/urlmap.rb:46:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/urlmap.rb:40:in `each'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/urlmap.rb:40:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/rails/rack/ > > > log_tailer.rb:17:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/content_length.rb:13:in `call'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/handler/webrick.rb:46:in `service'' > > > 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'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/action_controller/ > > > vendor/rack-1.0/rack/handler/webrick.rb:13:in `run'' > > > C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb:111 > > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `gem_original_require'' > > > C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > > > `require'' > > > script/server:3- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -