You cannot have a form in a form, you're probably doing a
page.replace_html 'form_id', :partial => 'form_partial' which is
causing this situation. You need to have an inner div with a unique ID
and a partial for the form contents that you will replace. Something
like:

<form id="foo">
  <div id="foo_contents">
    <!-- form fields go here, this content should come from a partial -->
  </div>
</form>

Then in your RJS:

page.replace_html 'foo_contents', :partial => 'partial_with_foo_contents'

Boy, lots of Rails questions on the Javascript list today ;)

-justin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to