On Feb 3, 6:18 pm, Tom Locke <[email protected]> wrote:
> 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
>
Thank you for the clarification!

I'm trying it by now, frting something like:

  def new_for_cellphone
    @sent_sms = SentSms.new(:cellphone_id => params[:cellphone_id])
    hobo_new @sent_sms
    render_tag "form-for-cellphone"
  end

and the tag is:


<def tag="form-for-cellphone">
        <section id="modal-window-content">
                <form method="post" param>
                        <field-list: fields="cellphone, message" skip="owner">
                                <cellphone-view:><name/><input 
type='hidden'/></cellphone-view:>
                        </field-list:>
                        <submit: label="Create Sent Sms"/>
                </form>
        </section>
</def>

it renders nothing, but I can't see errors even in log, if the
controller is like this one:

  def new_for_cellphone
    hobo_new
    render_tag "form-for-cellphone"
  end

then it renders, but without a cellphone (the <name/> tag just renders
a (Not Available) text.

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