I just checked out the latest version from svn but it seems to be
broken. After setting up my databases using the scripts I go to
http://localhost:3000/admin and login but then immediately the
following error occurs. Should I rather be developing against 0.5?
Farrel
RuntimeError in Admin/page#index
Showing app/views/admin/page/index.rhtml where line #6 raised:
script/…/config/…/app/helpers/admin/page_helper.rb:11:in
`expanded_rows’: Called id for nil, which would mistakenly be 4 – if
you really wanted the id of nil, use object_id
Extracted source (around line #6):
3: SiteMap.prototype = Object.extend({}, RuledTable.prototype); //
Inherit from RuledTable
4: Object.extend(SiteMap.prototype, {
5:
6: expandedRows: <%= expanded_rows.to_json %>,
7:
8: onRowSetup: function(row) {
9: Event.observe(row, ‘click’,
this.onMouseClickRow.bindAsEventListener(this), false);
RAILS_ROOT: script/…/config/…
Application Trace | Framework Trace | Full Trace
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:91:in
content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:6:in
_run_rhtml_admin_page_index’
(eval):1:in content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:1:in
eval’
#{RAILS_ROOT}/app/views/admin/page/index.rhtml:1:in
`_run_rhtml_admin_page_index’
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:91:in
content_for' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:106:in
capture_erb_with_buffer’
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:68:in
capture' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:91:in
content_for’
vendor/rails/actionpack/lib/action_view/base.rb:314:in
compile_and_render_template' vendor/rails/actionpack/lib/action_view/base.rb:290:in
render_template’
vendor/rails/actionpack/lib/action_view/base.rb:249:in render_file' vendor/rails/actionpack/lib/action_controller/base.rb:699:in
render_file’
vendor/rails/actionpack/lib/action_controller/base.rb:621:in
render_with_no_layout' vendor/rails/actionpack/lib/action_controller/layout.rb:243:in
render_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:911:in
perform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:381:in
process_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
process’
vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' vendor/rails/railties/lib/webrick_server.rb:115:in
handle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
service’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:in
start_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:67:in
dispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
require’
vendor/rails/railties/lib/commands/server.rb:30
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’
script/server:3
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:91:in
content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:6:in
_run_rhtml_admin_page_index’
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:106:in
capture_erb_with_buffer' vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:68:in
capture’
(eval):1:in content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:1:in
eval’
vendor/rails/actionpack/lib/action_view/helpers/capture_helper.rb:91:in
content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:1:in
_run_rhtml_admin_page_index’
vendor/rails/actionpack/lib/action_view/base.rb:314:in
compile_and_render_template' vendor/rails/actionpack/lib/action_view/base.rb:290:in
render_template’
vendor/rails/actionpack/lib/action_view/base.rb:249:in render_file' vendor/rails/actionpack/lib/action_controller/base.rb:699:in
render_file’
vendor/rails/actionpack/lib/action_controller/base.rb:621:in
render_with_no_layout' vendor/rails/actionpack/lib/action_controller/layout.rb:243:in
render_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:in
measure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:911:in
perform_action_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:368:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:in
perform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:381:in
process_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:377:in
process_without_session_management_support' vendor/rails/actionpack/lib/action_controller/session_management.rb:117:in
process’
vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' vendor/rails/railties/lib/webrick_server.rb:115:in
handle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in
service’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:in
start_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:in
start’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:67:in
dispatch’
vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in require' vendor/rails/activesupport/lib/active_support/dependencies.rb:147:in
require’
vendor/rails/railties/lib/commands/server.rb:30
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require’
script/server:3