Ruby on Rails Wednesday, September 26, 2012

This is two issues, how to deal with a form that allows you to create
multiple users and how to extend an existing form. Lets deal with the
simplest one first:

Create a form that allows 4 users to be created at once. No
javascript, just write a form that displays the fields to add 4 users.
When you have done that you will know what structure your form should
be and how to process it.

The second issue is how to add new fields to an existing form using
javascript (note we are not creating a new form, just adding new
fields to the existing form). Having written the form that allows 4
users to be added will tell you how the form needs to be structured
and it will make writing the javascript much easier.

--
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 https://groups.google.com/groups/opt_out.

No comments:

Post a Comment