Matt... you are completely right. I will never have a service_order w/o a customer. I'm still new to Hobo and messing with the dryml has been my biggest hurdle. Thanks everyone... until now I've tried not to go outside of what hobo generates for me, but it's time to get my feet wet with dryml.
Mike On Thu, May 20, 2010 at 8:22 PM, Matt Jones <[email protected]> wrote: > > On May 20, 2010, at 1:11 PM, Michael Kim wrote: > > Thanks guys. I'm just starting out with hobo and wanted to try putting >> dryml there to see it work. I soon realized that I'd be doing the same >> thing for my edit page so I'm back to extending it admin_site.dryml. I'm >> having a similar problem there.... >> >> The closest I've come is to extend the new-page and redefine the form and >> field-list. With a route like /service_orders/new its perfect, but it does >> not work for /service_orders/1-cust/new. What is the proper way to let it >> know that it will be extending for new_for_customer too. >> >> Moreover, can I somehow extend the form tag or do I define a new tag and >> add it both new and edit pages? >> > > You can extend the form tag and it will get picked up on all the relevant > pages - see the cookbook for details. > > However, there aren't typically many situations where you'll end up with > both a new.dryml and new_for_something.dryml - I've mostly seen it with > *index* actions, where the 'for' version is a handy way to designate subsets > of records. In your case, does it actually make sense (according to the > application domain) to have a service_order without a customer? > > --Matt Jones > > -- > 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]<hobousers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > > -- 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.
