-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Yasuko Ohba edited this page Mar 1, 2016
·
4 revisions
URL | HTTP METHOD | Controller | Action | Description |
---|---|---|---|---|
/ | GET | Welcome | index | ダッシュボード。「現在の習慣」を表示。現在の習慣の登録(選択)への動線を提供。WISH LIST や最近達成したもののリストも見えるとよい。 |
/habits/current/new | GET | CurrentHabit | 「現在の習慣」を記入して登録するためのフォームを表示する | |
/habits/current | POST | CurrentHabit | params[:wish_id] がなければ「現在の習慣」を記入して登録する。あれば「習慣にしたいもの」を「現在の習慣」にする | |
/habits/wish | POST | WishedHabits | create | 新しい「習慣にしたいもの」を登録する |
/habits/wish/7 | PUT | WishedHabits | update | 「習慣にしたいもの」を更新する |