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