viewでの記述: ◯◯_path,(パラメータ名:{カラム名: 値, ・・・})
(例)users_path(user:{name: "aiueo"})
→Parameters: {"authenticity_token"=>"", ""user"=>{"name"=>"aiueo"}}という形でコントローラのcreateアクションへパラメータが渡される。
More than 5 years have passed since last update.
viewでの記述: ◯◯_path,(パラメータ名:{カラム名: 値, ・・・})
(例)users_path(user:{name: "aiueo"})
→Parameters: {"authenticity_token"=>"", ""user"=>{"name"=>"aiueo"}}という形でコントローラのcreateアクションへパラメータが渡される。
Register as a new user and use Qiita more conveniently