Thanks Bryan, that makes sense. This tag does appear to be what we're looking for, the concern now is upgrading to 1.4 and how that will affect our application. We'll obviously create another branch to build the 1.4 version and test it. I've seen the documentation on the cookbook site about the changes from 1.3 to 1.4. How "stable" is 1.4 for a production application? What are the major issues currently holding it back from official release? Any estimate on timing for the release?
On Thursday, May 10, 2012 12:17:36 PM UTC-7, Bryan Larsen wrote: > > hot-input doesn't save the form, it just refreshes the form. It sends > the form back to the server, and the server creates or updates the > object based on the form just like a normal create or update. > However, the object isn't saved, it's just used as the context to > refresh the page. > > Bryan > > On Thu, May 10, 2012 at 3:05 PM, Jim Harvey <[email protected]> wrote: > > The <hot-input> may be pretty close to what I'm looking for. It seems > from > > this line: > > > > <region-label:><%= this_parent.country._?.region_label %><region-label:> > > > > > > that the <hot-input> is saving the record then updating the region label > > based the record's new country. Is that right? If so, how does it work > for a > > new record when the country may be selected first and the record can't > be > > saved yet? Or is there something about all this I'm not understanding? > > > > > > On Wednesday, May 9, 2012 4:44:15 PM UTC-7, Bryan Larsen wrote: > >> > >> Is > http://cookbook-1.4.hobocentral.net/tagdef/hobo_rapid/inputs/hot-input > >> what you're looking for? It's only available on Hobo 1.4 though. > >> > >> Bryan > >> > >> On Wed, May 9, 2012 at 5:45 PM, Jim Harvey <[email protected]> > wrote: > >> > Hi, I have new and edit forms where a portion of the form is updated > via > >> > ajax based on selections by the user. Specifically, the user must > select > >> > a > >> > State/Province for the District <select-many> to populate, and then > >> > select > >> > one or more districts for a School <select-many> to show up. I have > it > >> > working on the EDIT form only because the <select-many> inputs rely > on > >> > saving the current user and populating the dropdowns based on the > >> > "parent" > >> > selection (ie. province -> district). So, in the case of a New user, > I > >> > can't > >> > save the user without having all other required fields filled out. > >> > > >> > Really, I don't want to be saving anything at all, and if the request > is > >> > an > >> > ajax request I'd like to store the selections for Province/District > in > >> > the > >> > controller in some instance variable and use that to inform the > >> > <select-many>, which would then only save to the User instance in the > >> > database when the form is submitted. Is there any way this can be > done? > >> > Let > >> > me know if what I want to do is not clear or if you want to see my > code > >> > so > >> > far. Also, I'm on Rails 3.0.12 and Hobo 1.3.0 if it matters. Thanks! > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "Hobo Users" group. > >> > To view this discussion on the web visit > >> > https://groups.google.com/d/msg/hobousers/-/PeH8nKjfjAsJ. > >> > 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. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Hobo Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/hobousers/-/dSobjeUWDRkJ. > > > > 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. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/CsmWt0xVfJEJ. 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.
