0

i have three models associated by has_many and through, and i need to make a form for them. the association is like, a user has many projects; a project has many tasks; a user has many tasks through projects. what i want to do is a user can create a project first, and also add as many as tasks (by cocoon link_to_add_association); after finishing the previous step, user can continue adding new project with many tasks, i.e the previous form step is repeated until it is finished (we will have finish button).

Bryan Ash
  • 4,385
  • 3
  • 41
  • 57
user2775888
  • 39
  • 10
  • Have you tried it? It is definitely possible. Please show what you tried or where you are stuck. Also note cocoon has an [example-project](https://github.com/nathanvda/cocoon_simple_form_demo) and [wiki-page](https://github.com/nathanvda/cocoon/wiki/A-guide-to-doing-nested-model-forms) showing amongst others double nested relations. – nathanvda Aug 12 '14 at 19:11
  • Thanks! we tried, and it is definitely doable. :) – user2775888 Aug 22 '14 at 06:51

0 Answers0