ルーティングにおいて
collectionとmenberの違い。
idを特定することができるのがmember
書き方としては下記のようになる。
collection do
post :confirm
end
member do
patch :confirm
end
もしくは
post:confirm, on:collection
patch :confirm, on:member
と書くこともできる。
Go to list of users who liked
More than 1 year has passed since last update.
ルーティングにおいて
collectionとmenberの違い。
idを特定することができるのがmember
書き方としては下記のようになる。
collection do
post :confirm
end
member do
patch :confirm
end
もしくは
post:confirm, on:collection
patch :confirm, on:member
と書くこともできる。
Register as a new user and use Qiita more conveniently
Go to list of users who liked