List Info

Thread: Re: form_tag not rendering partials




Re: form_tag not rendering partials
country flaguser name
Canada
2007-02-20 14:26:05
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 <Nex342gmail.com&gt;
To: Haml <hamlgooglegroups.com>
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" <dmanti...yahoo.com&gt; wrote:
>; Hi, I replied on friday but apparently my response didn't go through.
&gt; 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
&gt; 2:
> 3: = start_form_tag(:action => 'create')
> 4: &nbsp; = render :partial => 'form'
>; 5: &nbsp; %hr/
> 6: &nbsp; = submit_tag "Create", :class => 'form-button'
> 7: &nbsp; = link_to 'Back to List', {:action => 'list'}, :class => 'form-
>; button'
&gt; 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



The best gets better. See why everyone is raving about the All-new Yahoo! Mail.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to hamlgooglegroups.com
To unsubscribe from this group, send email to haml-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---
  
  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )