thanks v. much

On May 6, 5:19 pm, kevinpfromnm <[email protected]> wrote:
> you don't use an editor field on a unsaved record because the record
> doesn't exist to be dynamically updated.  in this case, the model the
> belongs_to would be set on isn't in the db yet and thus can't be
> updated.  just use a regular input for a new page and generally on any
> form.  editors tend to be for quick changes in a view, either index or
> show.
>
> On May 6, 8:59 am, sam <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I'm fairly new to Hobo and have a question that might have a simple
> > answer:
>
> > I'm trying to use select-one-editor, the Ajax select menu for a
> > belongs_to association. It works when updating an existing association
> > but not when adding one on the new page of the child.  When I select a
> > parent, the spinner appears but it doesn't update the part I
> > specified, and when I click the create button, it resets the parent to
> > nil and I get back a validation  error that the parent record can't be
> > empty.  From what I understand, the problem is that the child record
> > is not yet saved in the db, however the parent record is.  Maybe I
> > need to prepare something in the controller first? or some hidden id
> > field? I have noticed in the recipes that the non-Ajax select-one is
> > usually Ajaxified and used instead, any reason for doing this rather
> > than use the Ajax editor?
>
> > thanks
>
> > sam
>
> > --
> > 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 
> > athttp://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 
> athttp://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.

Reply via email to