質問編集履歴

2

ソースコードの修正

2020/06/05 11:35

投稿

satoshi_n61
satoshi_n61

スコア10

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,7 @@
64
64
 
65
65
  def create
66
66
 
67
- redirect_to root_path, notice: 'メッセージ送信されました'
67
+ redirect_to root_path, notice: '購入完了しました'
68
68
 
69
69
  end
70
70
 

1

前提の追加

2020/06/05 11:35

投稿

satoshi_n61
satoshi_n61

スコア10

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
-
3
+ Railsで簡易的なECサイトをつくっています。
4
4
 
5
5
  商品の詳細ページから購入ボタンを押して一覧画面(index)に戻り、「購入が完了しました」などのフラッシュメッセージを出すという仕様にしたいと考えています。
6
6