Friday, April 29, 2011

[Rails] Re: Rails doesn't populate dynamic generated fields on error on posting

adnan khan wrote in post #995336:
> In our raols application we have a page where upon submit we save data
> in db. On this page, we have some fields which are dynamically
> generated and I see that in case of a validation error when page
> reloads it doesn't populate these fields with the values present upon
> posting.

What do you mean by your fields being dynamically generated? It's the
normal case for all the fields, along with the form itself, to be
dynamically generated in Rails applications. That's what form helper
methods do.

Do you mean you're adding them with JavaScript? If that's the case then
JavaScript would be needed to manage their contents as well.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate