#850 open
Peter Ehrlich

checkbox error

Reported by Peter Ehrlich | November 12th, 2010 @ 07:48 AM | in Hobo 1.1

Trying to make a boolean input for a table field

model:
delivered :boolean, :default => false

dryml:
<delivered-view:>
<input:delivered/> </delivered-view:>

error:

undefined method []' for false:FalseClass

undefined method []' for true:TrueClass

top of trace:
/Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo.rb:95:in get_field' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo.rb:112:inget_field_path' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo.rb:109:in each' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo.rb:109:inget_field_path' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo/dryml/template_environment.rb:283:in new_field_context' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo/dryml/template_environment.rb:248:innew_context' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/actionpack-2.3.8/lib/action_view/helpers/capture_helper.rb:129:in with_output_buffer' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo/dryml/template_environment.rb:248:innew_context' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo/dryml/template_environment.rb:273:in new_field_context' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/lib/hobo/dryml/template_environment.rb:324:in_tag_context' /Users/peter/.rvm/gems/ruby-1.8.7-p302@rails238b/gems/hobo-1.0.1/taglibs/rapid_forms.dryml:289:in input' app/views/taglibs/application.dryml:100:inlineitem_table'
app/views/taglibs/application.dryml:99:in lineitem_table'<br/> app/views/taglibs/application.dryml:95:incall'
app/views/taglibs/application.dryml:95:in lineitem_table'<br/> app/views/taglibs/application.dryml:95:inlineitem_table'
app/views/taglibs/application.dryml:94:in lineitem_table'<br/> app/views/taglibs/application.dryml:88:inlineitem_table'
app/views/orders/show.dryml:42:in render_page'

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen November 15th, 2010 @ 06:23 PM

    • State changed from “new” to “open”
    • Milestone set to Hobo 1.1
    • Tag changed from boolean, bug, checkbox, dryml, false, input, true to defect, needs-test-case
    • Milestone order changed from “197923” to “0”

    I have many examples of working checkboxes in my apps. Therefore there's something special about yours. Please create a minimal hobo application that demonstrates the problem, post it to github and link it here. Thank you.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Pages