I actually tried to add form_for in the partial and it appeared to work. 
The form within a form wasn't a problem it seemed. However when a 
validation error was detected, the dynamically rendered partial was 
gone. When I tried to reselect the partial in the select box, the 
content I added was wiped out. I'm sure there may be a way to preserve 
the content after form validation, but it seems like too much work.

At this rate I'll take your advice and seek a different approach using 
pure javascript. I may also try RJS code directly in the main view via 
the :function parameter in the observe_field method.

Thanks for your help Marnen,

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to