Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProjectsController
- ...
- def tasks
- @project = Project.find(params[:project_id])
- @tasks = @project.tasks
- render '/tasks/index'
- end
- def new_task
- @project = Project.find(params[:project_id])
- @tasks = @project.tasks.build
- render '/tasks/new'
- end
- ...
- end
Add Comment
Please, Sign In to add comment