I'm trying to follow RESTful design on the application I'm working on right now. And I have a doubt so I would like to know what you guys think about it.
I have 2 models: project and task,where a project has many tasks.
When I create a project I would like to define all the tasks for that project.
My question is where I have to put this action: when I create a project, basically I create several tasks so it should be in project controller or task controller? I guess it is better if it is a project action. So I will have a create action for project but not for task (it is meaningless to create a task if not related to a project).