I am using a _form to capture a text field, nothing new but apparently
the partial is not being rendered. Here is my code:

- form_tag(:action => 'create') do
  = render :partial => 'form'
  %hr/
  = submit_tag "Create", :class => 'form-button'
  = link_to 'Back to List', {:action => 'list'}, :class => 'form-
button'

I get a blank section where at least one field should be shown.
Curiously, if I remove the "= render ..." line I get exactly the same
result. Any ideas??

I almost forgot, when this partial is called for editing from a rhtml
it works fine.

I also tried this but the compiler complains always at the last line.

= start_form_tag(:action => 'create')
  = render :partial => 'form'
  %hr/
  = submit_tag "Create", :class => 'form-button'
  = link_to 'Back to List', {:action => 'list'}, :class => 'form-
button'
= end_form_tag

Thanks,

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

Reply via email to