When I get this error, it usually means I haven''t created a
''pages'' table to
support the ''Page'' scaffold.
just a thought
-Larry
On 7/26/06, Jordan Williams <jwill@gsplastics.com>
wrote:>
> Hi.. Im a brand new ruby on rails developer, and when i make a scaffold
> and navigate to the it, i get an error that looks like this.
>
> -----------------------------------------------------------------
>
> NameError in PagesController#list
>
> uninitialized constant Page
>
> RAILS_ROOT: ./script/../config/..
> Application Trace | Framework Trace | Full Trace
>
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:123:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:131:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/core_ext/string/inflections.rb:59:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:194:in
> `paginator_and_collection_for''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:129:in
> `paginate''
> #{RAILS_ROOT}/app/controllers/pages_controller.rb:31:in `list''
> -e:4:in `load''
> -e:4
>
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:123:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:131:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/core_ext/string/inflections.rb:59:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:194:in
> `paginator_and_collection_for''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:129:in
> `paginate''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:910:in
> `send''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:910:in
> `perform_action_without_filters''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/filters.rb:368:in
> `perform_action_without_benchmark''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `measure''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/rescue.rb:82:in
> `perform_action''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:381:in
> `send''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:381:in
> `process_without_filters''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/filters.rb:377:in
> `process_without_session_management_support''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/session_management.rb:117:in
> `process''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
> `dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:115:in
> `handle_dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:81: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:155:in `start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:67:in
> `dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4
> /lib/commands/servers/webrick.rb:59
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require__''
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:147:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/server.rb:30
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require__''
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:147:in
> `require''
> script/server:3
>
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:123:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:131:in
> `const_missing''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `module_eval''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/inflector.rb:161:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/core_ext/string/inflections.rb:59:in
> `constantize''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:194:in
> `paginator_and_collection_for''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/pagination.rb:129:in
> `paginate''
> #{RAILS_ROOT}/app/controllers/pages_controller.rb:31:in `list''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:910:in
> `send''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:910:in
> `perform_action_without_filters''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/filters.rb:368:in
> `perform_action_without_benchmark''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `measure''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/benchmarking.rb:69:in
> `perform_action_without_rescue''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/rescue.rb:82:in
> `perform_action''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:381:in
> `send''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/base.rb:381:in
> `process_without_filters''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/filters.rb:377:in
> `process_without_session_management_support''
> c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3
> /lib/action_controller/session_management.rb:117:in
> `process''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb:38:in
> `dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:115:in
> `handle_dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:81: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:155:in `start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:144:in `start_thread''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:94:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `each''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:89:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
> c:/ruby/lib/ruby/1.8/webrick/server.rb:79:in `start''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/webrick_server.rb:67:in
> `dispatch''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4
> /lib/commands/servers/webrick.rb:59
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require__''
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:147:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/commands/server.rb:30
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require__''
> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require''
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1
> /lib/active_support/dependencies.rb:147:in
> `require''
> script/server:3
> -e:4:in `load''
> -e:4
>
> This error occured while loading the following files:
> page.rb
>
> Request
>
> Parameters: None
>
> Show session dump
>
> ---
> flash: !ruby/hash:ActionController::Flash::FlashHash {}
>
> Response
> Headers: {"cookie"=>[],
"Cache-Control"=>"no-cache"}
>
>
>
-----------------------------------------------------------------------------
>
> i am using unmodified scaffoding code. thanks for your help!
>
> jordan
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory alternative."
--- E.Taft Benson
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/52193cde/attachment-0001.html