First , you will have to add a Boolean attribute for the user model called "accept_terms" , and add the same attribute for fields. this way name and accept_terms are available on the forms ,
Id also add them to attr_accessible too. Vivek On Sat, Mar 9, 2013 at 6:13 AM, Kevin Brown <[email protected]>wrote: > I'm trying to make two modifications to the hobo accept-invitation-form: > > 1. Add the name field so the user can edit their name. > 2. Add an Accept-terms-of-service checkbox. > > The following code added to my front_site.dryml fulfills item 1, and works > fine: > > <extend tag="accept-invitation-form" for="User"> > <old-accept-invitation-form merge> > <field-list: fields="name, password, password_confirmation" param/> > </old-accept-invitation-form> > </extend> > > However, when I attempt to add the checkbox via append-field-list as in > the following code, it both removes the name field added by the previous > code, and does not append the new checkbox field: > > <extend tag="accept-invitation-form" for="User"> > <old-accept-invitation-form merge> > <field-list: fields="name, password, password_confirmation" param/> > <append-field-list:> > <p> > <input id='accept_tos' type='checkbox' > onClick="EnableSubmit(this)"/> > Yes I agree to the <a href="#tos" data-toggle="modal">Terms > of Service.</a> > </p> > </append-field-list:> > </old-accept-invitation-form> > </extend> > > Can anybody explain what might be going on, and let me know if there is a > better way to accomplish this? I am still somewhat new to hobo. > > Thanks very much! > - Kevin > > -- > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
