Reputation: 682
I'm trying to create a survey app where the user can create surveys to ask others.
Scenario is basicaly like this and it's all done on the browser:
Upvotes: 0
Views: 17
Reputation: 17834
You need dynamic forms to achieve this, there's an awesome gem called nested_form to easily created nested forms. The creator of this gem Ryan Bates has also created a Railscast session to demonstrate its usage and fortunately in that video the demo app is on survey. Here's the link to the video
https://www.youtube.com/watch?v=amT27SfNhKM
Here's the link to the gem
https://github.com/ryanb/nested_form
Hope that helps!
Upvotes: 1