2022-04-05から1日間の記事一覧
collectionとは?memberとは? resources以外で独自アクションを定義したい場合はcollectionとmemberを使用します。 違いは:idをつける時はmember、付けない時はcollectionということ。 collectionを使う config.routes.rb resources :tasks do collection do …
collectionとは?memberとは? resources以外で独自アクションを定義したい場合はcollectionとmemberを使用します。 違いは:idをつける時はmember、付けない時はcollectionということ。 collectionを使う config.routes.rb resources :tasks do collection do …