Ruby on Rails Saturday, May 29, 2010

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment