Discard my response and see Kevin's.

Henry

On August 20, 2010 06:46:50 pm Henry Baragar wrote:
> On August 20, 2010 05:47:34 pm Scorpio wrote:
> > I've got an extended model with fields for city, address, phone, fax
> > etc and yet they don't show up in my form signup. In my
> > application.dryml I've created:
> > 
> > <extend tag="signup-form" for="User">
> > <old-signup-form merge>
> > 
> >   ->>>
> >   </old-signup-form >
> > 
> > </extend>
> > 
> > It is my understanding that this should give me the old form and
> > using
> > 
> > ->>> <field-list: fields="city, province"/>
> > 
> > and the like where the arrow is should extend my form
> 
> Not quite:  Strictly speaking, it is the tag that is being extended, not
> the form (although it is a tag for a form).
> 
> Specifically, this code provides a new value for the "fields" attribute of
> the "field-list" parameter (of the tag).
> 
> > yet it gives me
> > a blank page and the form list overrides not appends the form.
> 
> I don't understand:  How can you tell that the list has been overridden
> when the page is blank?
> 
> > Also
> > when i try to override i often get
> > undefined method `confirm_password' for #<User:
> > and such. Depending on what the field name is. How and where do I fix
> > all that ?
> 
> First, the Hobo user model does validation on the 'confirm_password'
> attribute.
> 
> Second, this is the time when it is best to see what hobo is doing, by
> looking at the app/views/taglibs/auto/rapid/forms.dryml file, where you
> will see the form defined:
> 
> <def tag="signup-form" for="User">
>   <form lifecycle="signup" merge param="default">
>     <error-messages param/>
>     <field-list fields="name, email_address, password,
> password_confirmation" param/>
>     <div param="actions">
>       <submit label="#{ht 'users.actions.signup', :default=>['Signup']}"
> param/><or-cancel param="cancel"/>
>     </div>
>   </form>
> </def>
> 
> 
> I think that what you want is:
> 
> <extend tag="signup-form" for="User">
>   <old-signup-form merge>
>   <field-list: fields="name, email_address, password,
> password_confirmation, city, province" />
>   </old-signup-form >
> </extend>
> 
> > Thanks in advance.
> 
> Cheers,
> Henry

-- 
Henry Baragar
Instantiated Software

-- 
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