Nathan, please find my code attached.

I added the 'do' at the end of the 'start_from_tag' and now it doesn't crash. I 
get the same result as if a '- form_tag' was used, the partial is still not 
being rendered.

Thanks,

Daniel

----- Original Message ----
From: Nex3 <[EMAIL PROTECTED]>
To: Haml <[email protected]>
Sent: Tuesday, February 20, 2007 1:59:52 PM
Subject: [haml] Re: form_tag not rendering partials


The way you currently have it has the same problem Martin was having
above. You aren't using "do" to pass start_form_tag a block. However,
replacing the first line with "- form_tag(:action => 'create') do"
should get rid of it. If it doesn't, could you show me the exact code
that's not outputting?

- Nathan

On Feb 20, 7:02 am, "Daniel" <[EMAIL PROTECTED]> wrote:
> Hi, I replied on friday but apparently my response didn't go through.
> Well, here it goes again.
> I am now using the trunk version and I see no changes. Here is the
> error I am getting in my new.haml form.
>
> (eval):27:in `compile': compile error
> (eval):27: parse error, unexpected kEND, expecting $
>
> Extracted source (around line #8):
>
> 1: %h3 New Scenario
> 2:
> 3: = start_form_tag(:action => 'create')
> 4:   = render :partial => 'form'
> 5:   %hr/
> 6:   = submit_tag "Create", :class => 'form-button'
> 7:   = link_to 'Back to List', {:action => 'list'}, :class => 'form-
> button'
> 8: = end_form_tag
>
> Curiously, when I change this code to the "- form_tag(:action =>
> 'create') do" form it doesn't crash but the input fields are not
> rendered.
>
> Any ideas?
>
> Daniel









__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: new.haml
Description: Binary data

Attachment: _form.haml
Description: Binary data

Reply via email to