As DRYML doesn't use layouts, the normal way to do this is to define  
the content you want in a tag and then use render_tag or call_tag in  
the controller

Tom

On 3 Feb 2009, at 17:16, Gabriele Tassoni wrote:

>
>
>
> On 3 Feb, 15:17, Gabriele Tassoni <[email protected]> wrote:
>> Hi,
>> I can't understand how to do "hobo way" the insertion of a New form
>> into a modal window.
>
> hmmm! don't know if it's a clean way, but it works, the card has an
> after body section with the links, something like:
>
> <after-body:>
>       <span if="&this.emails"><%= link_to_show_overlay 'Send an email', "/
> emails/#{this.emails.actives.first.id}/sent_emails/new" %></span> |
>       <span if="&this.cellphones"><%= link_to_show_overlay 'Send a sms', "/
> cellphones/#{this.cellphones.actives.first.id}/sent_smses/new" %></
> span>
> </after-body:>
>
> that calls the modal window's specialized link_to (note the link part
> is a new_for_email format).
> The controller stays the same, what changes is the view
> (new_for_cellphone.dryml):
>
> <new-for-cellphone-page:  without-header without-aside>
>       <form:>
>               <field-list: skip="cellphone, delivered"/>
>       </form:>
> </new-for-cellphone-page:>
>
> which, thanks to that  without-header without-aside, shows just the
> content.
>
> G.
> >


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