0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

リクエストないのparameterについて

Posted at

HTTPメソッドとしてGETを使う場合、Railsでは次のようなURL形式でパラメータをURLに含めてリクエストを送信

上のURLはfurimaアプリの1つのURLで、出品番号27番の商品の購入画面になります。

20210430-010347.png

POSTを使って送信されたパラメータの取得

また購入画面なので購入フォームに入力や表示のあるものがparameterで取得できます。
20210430-010402.png

Parameters: {"authenticity_token"=>"CCYTmCC7QDCwfk4HZpYRuapieE0CHaQ3ffA6YClz+deEkoo9etxfeeukyqQT/shksW+u5Vc3zUeXhuX/JgUj1g==", "address_purchase"=>{"postal_code"=>"", "prefecture_id"=>"1", "town"=>"", "address"=>"", "building"=>"", "phone_number"=>""},
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?