Trunk broken

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:ineval’
#{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:incapture_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:incontent_for’
vendor/rails/actionpack/lib/action_view/base.rb:314:in
compile_and_render_template' vendor/rails/actionpack/lib/action_view/base.rb:290:inrender_template’
vendor/rails/actionpack/lib/action_view/base.rb:249:in render_file' vendor/rails/actionpack/lib/action_controller/base.rb:699:inrender_file’
vendor/rails/actionpack/lib/action_controller/base.rb:621:in
render_with_no_layout' vendor/rails/actionpack/lib/action_controller/layout.rb:243:inrender_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:911:inperform_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:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:381:inprocess_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:inprocess’
vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
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:inrequire’
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:incapture’
(eval):1:in content_for' #{RAILS_ROOT}/app/views/admin/page/index.rhtml:1:ineval’
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:inrender_template’
vendor/rails/actionpack/lib/action_view/base.rb:249:in render_file' vendor/rails/actionpack/lib/action_controller/base.rb:699:inrender_file’
vendor/rails/actionpack/lib/action_controller/base.rb:621:in
render_with_no_layout' vendor/rails/actionpack/lib/action_controller/layout.rb:243:inrender_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:53:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:911:inperform_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:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:381:inprocess_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:inprocess’
vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' vendor/rails/railties/lib/webrick_server.rb:115:inhandle_dispatch’
vendor/rails/railties/lib/webrick_server.rb:81:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice’
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread’
/usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread' /usr/lib/ruby/1.8/webrick/server.rb:95:instart’
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart’
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' vendor/rails/railties/lib/webrick_server.rb:67:indispatch’
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:inrequire’
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

On 31/07/06, Farrel L. [email protected] wrote:

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

Is the latest version of radiant from svn broken for anyone else? Or
is it just me?

Farrel

The trunk is broken for me using the normal setup_database command on
mysql. It’s definitely broken.

Josh F.

Josh F. wrote:

The trunk is broken for me using the normal setup_database command on
mysql. It’s definitely broken.

Can I see your backtrace?


John L.
http://wiseheartdesign.com

On 02/08/2006, at 5:51 AM, Farrel L. wrote:

On 31/07/06, Farrel L. [email protected] wrote:

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?

Is the latest version of radiant from svn broken for anyone else? Or
is it just me?

Revision 87 is working fine for me, on OSX with mongrel and sqlite3.

How did you setup the database?

Bodhi

On 02/08/2006, at 2:40 PM, Josh F. wrote:

http://pastie.caboo.se/6958

There you go… should be enough to figure it out…:slight_smile:

You don’t have a root-page, so line 11 of page_helper.rb crashes:

 [(@homepage || Page.find_by_parent_id(nil)).id];

as Page#find_by_parent_id returns nil. I think you are right though,
trunk is broken… If you just want to start playing around with
radiant, just choose option 2 when you run setup_database, then delete
the stuff you dont need…

Bodhi

http://pastie.caboo.se/6958

There you go… should be enough to figure it out…:slight_smile:

Josh F.

On 02/08/06, bodhi [email protected] wrote:

as Page#find_by_parent_id returns nil. I think you are right though,
trunk is broken… If you just want to start playing around with
radiant, just choose option 2 when you run setup_database, then delete
the stuff you dont need…

Bodhi

Yeah I set my database up with option 1. So this might be the problem.

Farrel

Hah, that’s the definition of a bug. :slight_smile:

Josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs