[Nitro] Bug in Array Control.

Bryan Soto bryan.a.soto at gmail.com
Tue Feb 28 03:35:50 EST 2006

Hi, I'm sending this out as I'm up way too late. This is a bug reported by

Run the following script (also attached):

#! /usr/bin/env ruby

require 'nitro'
require 'og'

require 'part/admin'

class ArrayControllerTest
  property :tests, Array



Go to /admin.
Create a new ArrayControllerTest.
Enter "Test" in the Tests field.
Edit this entry from the list.

This results in the following error.

*undefined method `pk' for #<StringIO:0x342edc0>

* 174: if values.empty?
175: str << emit_array_element(:removable => false)
176: else
177: removable = values.size != 1 ? true : false
178: values.each do |item|
179: str << emit_array_element(:selected => item.pk)
180: end
181: end
182: str << emit_container_end
183: end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20060228/15ae8e0a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array-controller-test.rb
Type: application/x-ruby
Size: 154 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20060228/15ae8e0a/attachment.bin 

More information about the Nitro-general mailing list