Actually, the following should work too:

<signup-form with="&User.new">
       <field-list fields="name, email_address, password,
password_confirmation" />
</signup-form>

Note the ":" after field-list. That means that we're specifying it as a
parameter to the tag.

On Sun, Jun 28, 2009 at 5:14 PM, Ritchie Young <[email protected]> wrote:

> The "for" in <def tag="signup-form" for="User"> means that signup-form is a
> polymorphic tag. That means that if the current object ("this") is of type
> User at the point <signup-form> is invoked then that's the tag definition
> that will be used. You'll find a full description of how that works in the
> DRYML Guide (http://cookbook.hobocentral.net/manual/dryml-guide).
>
> Your example will probably work if you change it to:
>
> <signup-form with="&User.new">
>        <replace-field-list:>
>        <field-list fields="name, email_address, password,
> password_confirmation" />
>        </replace-field-list:>
> </signup-form>
>
> If you look at the definition for <def tag="signup-form" for="User"> you'll
> see that the field-list element has a "param" attribute. That means that the
> above syntax should replace it.
>
> Regards
> Ritchie
>
>
>
> On Sat, Jun 27, 2009 at 12:48 PM, blueHandTalking <[email protected]> wrote:
>
>>
>> ...and after doing a search through the archive here,  tried
>>
>> <signup-form with="&User.new">
>>         <field-list fields="name, email_address, password,
>> password_confirmation" />
>> </signup-form>
>>
>> but that does not seem to be right either.
>>
>> jet
>>
>> >>
>>
>
>
> --
> Ritchie Young
> http://rubysync.org
>
>


-- 
Ritchie Young
http://rubysync.org

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