1

I'm a bit thumped on this one. On my site: www.mystorkparty.com a user creates a large registry for her baby shower. Is there anyway to create and save a populated registry and then let the user can just click auto populate and her registry form has a pre-populated form which she can edit further?

Thanks in advance.

Erin Walker
  • 739
  • 1
  • 11
  • 30

1 Answers1

0

Do you mean pre-defined code for a form? In that case, yes you can. Rails was meant to keep repetitive coding at a minimum and you can just create your own .gem file like "myForm.gem" that will generate the proper code for you and route it to a controller giving you the MVC structure.

Matt Hintzke
  • 7,744
  • 16
  • 55
  • 113
  • Yes, instead of entering each present, brand, color manually there is a predefined one which the user can just edit further. Something simple - automatic. Don't know if a GEM is the answer - doesn't make sense. – Erin Walker Jul 03 '12 at 14:41
  • http://guides.rubygems.org/make-your-own-gem/ I think this is basically what you want to do. – Matt Hintzke Jul 03 '12 at 14:50
  • Wouldn't know how to populate a form from that. – Erin Walker Jul 03 '12 at 15:21