1

I want to create a simple app with a webform interface for adding questions and answers. Something like voting. In one form I want to have a textfield for a question and several addable/removable fields for answers.

Is there some gem for that? I have found Surveyor but it is too complex for my needs.

pdu
  • 10,295
  • 4
  • 58
  • 95
rackom
  • 185
  • 3
  • 14

1 Answers1

0

You could work through the "Nested Model Form" tutorials on railscasts.com, then you would have, at least, the backend to create your surveys.

pdu
  • 10,295
  • 4
  • 58
  • 95
  • I followed episode but I am not able to add answers. Everything else is fine ... and how can i render whole survey to json/xml? Is there any option to render nested form set? – rackom Jun 12 '11 at 06:43
  • I think you will need to create a method where you render your things to json/xml. – pdu Jun 14 '11 at 05:59