-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
骨組み作成 #37
Conversation
# 発注確認画面 | ||
end | ||
|
||
def submit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
submit
だと、そのアクションが動くと注文がどこかに "提出" (つまり注文が自動的に行われる)みたいな感じもしなくもないので、 "締め切る" っていうニュアンスのあるもの(close
とか close_order
とか?)のほうが後々いいかなと思ったりしました。
(もしかしたら、今後開発が進んで「ポチっとしたら自動的にお弁当屋さんに注文がいく」ようなしくみが本当に実装されるかもしれないので)
app/controllers/orders_controller.rb
Outdated
# 予約確認画面 | ||
end | ||
|
||
def confirm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
個人的な感覚だけどどーも confirm っていうと「イカの内容で登録します。よろしいですか?」的なページを想像してしまう 😇
たぶん、そもそも https://app.moqups.com/colorbox222@gmail.com/IjJQsSFMcQ/view/page/a43a084e8 の画面でやりたいことは "確認" じゃなくて、 "受け取ったことを確定する" とか、 "受領する" とかいうことなんじゃないかなと思ったので、そういう名前のほうが何をしてるかわかりやすいコードになるような気がしました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あれ、ごめんなさい私がなにか勘違いしてるかも?
config/routes.rb
Outdated
end | ||
end | ||
|
||
root 'orders#index' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colorbox @yucao24hours レビューお願いします 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think LGTM
end | ||
|
||
root 'orders#index' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あれ、ここ root
を先頭に持ってきてほしいっていうコメント書いてたんだけど、 review required 機能を外したときにコメントもなくなっちゃったのかな...
https://railsguides.jp/routing.html#root%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B
特に意図がなければ root
は先頭に持ってきたほうがいいかなと思いました( #32 で直してレビューお願いしようと思うのでなにかあればそこで 🙏 )
必要な機能のrouting、controller、Viewを作りました。
ルーティングはこちら↓