嵌套资源开发:票务管理系统的CRUD实现
在开发过程中,我们实现了项目与票务的关联操作,包括创建、查看、编辑和删除票务等功能。下面将详细介绍这些功能的实现步骤。
1. 提交创建票务的更改
完成票务创建并关联到特定项目后,需要提交更改到版本控制系统。操作步骤如下:
git add .
git commit -m "Implemented creating tickets for a project"
git push
2. 查看票务
为了实现查看特定项目下的票务功能,我们需要进行一系列操作。
- 编写功能测试代码 :在 features/viewing_tickets.feature 文件中编写测试代码,示例如下:
Feature: Viewing tickets
In order to view the tickets for a project
As a user
I want to see them on that project's page
Background:
Given there is a project called "TextMate 2"
And that project has a ticket:
| title | description |
| Make it shiny! | Gra
超级会员免费看
订阅专栏 解锁全文
1706

被折叠的 条评论
为什么被折叠?



