So I changed the following line in application.dryml from

<section param="add-to-collection" if="&can_create?(@lease.activities)">

to

<section param="add-to-collection">

which allowed me to proceed by removing the check create check.  I am then 
presented with an inline form to add activities to the current lease, but 
when I hit the add button for the inline activity form, I am then presented 
with the following error:

NoMethodError in ActivitiesController#create_for_lease
undefined method `save' for #<Array:0xb4e0f538>

The relevant code in the applications.dryml is as follows:
<section param="add-to-collection">
                <h3 param="add-form-heading">
                  <ht key="activities.collection.add_form_heading">
                    Add an Activity
                  </ht>
                </h3>
                <form with="&@activity || 
new_for_current_user(@lease.activities)" owner="lease" without-cancel param>
                  <field-list: skip="lease"/>
                  <submit: label="#{ht 'activities.actions.add', 
:default=>['Add'] }"/>
                </form>
              </section>

I'm starting to notice a pattern here - @lease.activities is always an array 
so it appears to make sense there is no set_creator or save method for an 
array of activities, but since this is self generated, I'm a bit confused 
why this worked before and then stopped working at some point after I took 
an upgrade...

Thoughts?

-- 
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