Hello, I''m learning Rails right now, and as my first project I am trying to create a fun little useful website. However, I''m getting stuck on one of the steps, and was wondering what the easiest approach would be. What I''m specifically looking to do is to create "dynamic" forms, where the number of fields can be increased and decreased by the user. I''m referring to something like the functionality of phpMyAdmin, where the user has the option to keep adding columns to a table. It would be something like this: the form starts out with fields to input a street address. Then, when the user is finished adding that address, he has the option "Enter another address", and if he clicks on that button, a new set of fields is created, and which the a user can fill out the new address, until he feels he is finished. This is the same concept used on the following site for entering email addresses: http://meetwithapproval.com/CreateMeeting.aspx What would be the easiest way to do this? I figure it can be done server-side or client side; what''s the best way? Thanks, Rex --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, I realized the link I entered goes to the wrong page. Please ignore it. But does anybody know the best way to create dynamically expanding forms? On Jan 1, 2:07 am, Rex <rex.eastbou...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > I''m learning Rails right now, and as my first project I am trying to > create a fun little useful website. However, I''m getting stuck on one > of the steps, and was wondering what the easiest approach would be. > What I''m specifically looking to do is to create "dynamic" forms, > where the number of fields can be increased and decreased by the user. > I''m referring to something like the functionality of phpMyAdmin, where > the user has the option to keep adding columns to a table. It would be > something like this: the form starts out with fields to input a street > address. Then, when the user is finished adding that address, he has > the option "Enter another address", and if he clicks on that button, a > new set of fields is created, and which the a user can fill out the > new address, until he feels he is finished. This is the same concept > used on the following site for entering email addresses: > > http://meetwithapproval.com/CreateMeeting.aspx > > What would be the easiest way to do this? I figure it can be done > server-side or client side; what''s the best way? > > Thanks, > > Rex--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Jan 1, 7:07 pm, Rex <rex.eastbou...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry, I realized the link I entered goes to the wrong page. Please > ignore it. > > But does anybody know the best way to create dynamically expanding > forms?Maybe http://www.railscasts.com/episodes/75 will help? Allan --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks! I''ll have a look at it. On Jan 2, 2:37 pm, Allan <Allan.Cochr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jan 1, 7:07 pm,Rex<rex.eastbou...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Sorry, I realized the link I entered goes to the wrong page. Please > > ignore it. > > > But does anybody know the best way to create dynamically expanding > >forms? > > Maybehttp://www.railscasts.com/episodes/75will help? > > Allan--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Apparently Analagous Threads
- R CMD build: "Subdirectory 'R' contains invalid file names"
- [LLVMdev] REX prefix is not handled properly for X86_64?
- [PATCH v2 00/18] Replace many more uses of the Str module with PCRE.
- Issues accessing ZFS-shares on Linux
- [LLVMdev] X86 disassembler is quite broken on handling REX