Hi Kevin,

Nope, can't check for nil on the attribute since that calls the
attribute accessor causing recursion and an eventual segmentation
fault.

Here's what I'm getting without any check in place: (The error is
happening in show.dryml only because I an using an inline form for
creating a new Document object.) There is some wierdness because this
is a hidden field, so how to counter that?


ActionView::TemplateError (can't convert nil into Float) on line #15
of app/views/packages/show.dryml:
12:
13:             <field-list fields="created_at, updated_at">
14:             </field-list>
15:     </prepend-content-body:>
16:
17:
18:     <!-- Display documents in this package in a table. -->

    app/models/document.rb:57:in `%'
    app/models/document.rb:57:in `instrument_no'
    hobo (1.0.0) taglibs/rapid_forms.dryml:59:in `send'
    hobo (1.0.0) taglibs/rapid_forms.dryml:59:in `hidden_fields'
    hobo (1.0.0) taglibs/rapid_forms.dryml:58:in `map'
    hobo (1.0.0) taglibs/rapid_forms.dryml:58:in `hidden_fields'
    hobo (1.0.0) lib/hobo/dryml/template_environment.rb:328:in
`_tag_context'
    hobo (1.0.0) lib/hobo/dryml/template_environment.rb:248:in
`new_context'
    hobo (1.0.0) lib/hobo/dryml/template_environment.rb:248:in
`new_context'
    hobo (1.0.0) lib/hobo/dryml/template_environment.rb:328:in
`_tag_context'
    hobo (1.0.0) taglibs/rapid_forms.dryml:47:in `hidden_fields'
...
...

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to