On Mon, Aug 26, 2013 at 1:39 PM, kevinpfromnm <[email protected]>wrote:
> The new action should not be saving. That's the create action's job. > Sure, of course. But if I go back to the provided Hobo actions, how do I update my form when the watched field changes? I've tried going back to related tutorial ( http://cookbook.hobocentral.net/tutorials/15-dynamically-populated-select-menus) and using actions like this: def new_for_page hobo_new_for :page do this.attributes = params[:animation_pane] || {} hobo_ajax_response if request.xhr? end end ...but the result of this is that the entire form is replaced with nothing at all. This version worked but still had my previous problem of not capturing the relationship with the page: def new_for_page hobo_new do this.attributes = params[:animation_pane] || {} hobo_ajax_response if request.xhr? end end The frustration level is getting pretty high here. This ought to be a simple form update, and I've been working on it for three days now. pjm -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hobousers. For more options, visit https://groups.google.com/groups/opt_out.
