Hi Here I want to insert multiple records into a single table. Table is users.: email, password, password_confirmation and country.. "Add one more" functionality is also there so multiple records can be vary.. There are two problems for me. 1, How to create/insert the records :(might be using array text fields...) 2. If there is not valid record then how can I restore the value in the text field. So can anyone help me ? Thanks Brijesh Shah -- Posted via http://www.ruby-forum.com/.
http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah < rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi > > Here I want to insert multiple records into a single table. > Table is users.: email, password, password_confirmation and country.. > "Add one more" functionality is also there so multiple records can be > vary.. > > There are two problems for me. > > 1, How to create/insert the records :(might be using array text > fields...) > > 2. If there is not valid record then how can I restore the value in the > text field. > > So can anyone help me ? > > Thanks > Brijesh Shah > -- > Posted via http://www.ruby-forum.com/. > > > >-- http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes Sandip --- www.funonrails.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-/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 -~----------~----~----~----~------~----~------~--~---
Sandip Ransing wrote:> http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes > > On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah < > rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > >> 1, How to create/insert the records :(might be using array text >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > -- > http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nested-attributes > Sandip > --- > www.funonrails.comThanks , but this link is not my solution This link will help me to insert multiple records in different (nested table) where I want to insert multiple records in same table with validations... Thanks Brijesh Shah -- Posted via http://www.ruby-forum.com/.
Check out ar-extensions (http://www.continuousthinking.com/tags/ arext). Here''s an article that explains the usage: http://www.jobwd.com/article/show/31. Specifically, you''ll probably want to look at the import method it provides. You can tell it whether or not you want to use validations as well. Jon On Nov 2, 5:01 am, Brijesh Shah <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Sandip Ransing wrote: > >http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nest... > > > On Mon, Nov 2, 2009 at 4:04 PM, Brijesh Shah < > > rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > >> 1, How to create/insert the records :(might be using array text > >> Posted viahttp://www.ruby-forum.com/. > > > -- > >http://ryandaigle.com/articles/2009/2/1/what-s-new-in-edge-rails-nest... > > Sandip > > --- > >www.funonrails.com > > Thanks , but this link is not my solution > > This link will help me to insert multiple records in different (nested > table) > where I want to insert multiple records in same table with > validations... > > Thanks > Brijesh Shah > -- > Posted viahttp://www.ruby-forum.com/.